Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbowes committed Dec 29, 2014
2 parents 60a6f7e + b030331 commit 50d3f3f
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ secret.org
.emacs.desktop*
.*~
agent/*

## package directory
!literate-starter-kit-pkg.el
literate-starter-kit/
literate-starter-kit.tar
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,20 @@ doc/index.html:
cp doc/starter-kit.html doc/index.html
echo "Documentation published to doc/"

# Packaging
NAME=literate-starter-kit
PACKAGE=$(NAME)

$(PACKAGE): $(wildcard *.org) init.el Makefile literate-starter-kit-pkg.el
mkdir -p $(PACKAGE)
cp $^ $(PACKAGE)
$(BATCH) starter-kit.org --eval "(org-export-to-file 'ascii \"$(PACKAGE)/README\")"

$(PACKAGE).tar: $(PACKAGE)
tar cf $@ $<

package: $(PACKAGE).tar

clean:
rm -f *.elc *.aux *.tex *.pdf starter-kit*.el starter-kit*.html doc/*html *~ .starter-kit*.part.org
rm -rf $(PACKAGE).tar $(PACKAGE)
3 changes: 3 additions & 0 deletions literate-starter-kit-pkg.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(define-package "literate-starter-kit" (format-time-string "%Y%m%d.%H%M")
"A literate starter kit to configure Emacs using Org-mode files."
'((emacs "24.3")))
2 changes: 1 addition & 1 deletion starter-kit-haskell.org
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can skip these steps if you've already setup ghc and cabal
*** Update cabal
#+start_src sh
cabal install cabal-install
#+end
#+end_src

*** Set path to ~/.cabal/bin
#+begin_src sh
Expand Down
55 changes: 55 additions & 0 deletions starter-kit-latex.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

#+TITLE: Starter Kit Latex
#+OPTIONS: toc:nil num:nil ^:nil

This is part of the [[file:starter-kit.org][Emacs Starter Kit]].

* Starter Kit Latex
:PROPERTIES:
:results: silent
:END:
Support for editing Latex

** Prerequesites

In order to use AUCTeX the following software is required in addition:

*** A working TeX installation

**** UNIX-Style systems
A popular TEX system is TEX Live which may also be available via the
package system of your operating system distribution.

**** Mac OSX
A popular TEX system for Mac OS X is MacTEX which is based on TEX
Live.

*** A recent Ghostscript

This is needed for operation of preview-latex in both DVI and PDF
mode. Most versions of Ghostscript nowadays in use should work fine
(version 7.0 and newer).

** Installation

#+begin_src emacs-lisp
(starter-kit-install-if-needed 'auctex)
#+end_src

** Customization

#+begin_src emacs-lisp
(when (locate-library "auctex")
(setq TeX-auto-save t)
(setq TeX-parse-self t)

(add-hook 'LaTeX-mode-hook 'auto-fill-mode)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
)

#+end_src

10 changes: 6 additions & 4 deletions starter-kit-misc.org
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ ido-mode is like magic pixie dust!
(set-default 'indent-tabs-mode nil)
(set-default 'indicate-empty-lines t)
(set-default 'imenu-auto-rescan t)

(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'text-mode-hook 'turn-on-flyspell)

(eval-after-load "ispell"
'(when (executable-find ispell-program-name)
(add-hook 'text-mode-hook 'turn-on-flyspell)))

(defvar starter-kit-coding-hook nil
"Hook that gets run on activation of any programming mode.")

(defalias 'yes-or-no-p 'y-or-n-p)
;; Seed the random-number generator
(random t)
Expand Down
2 changes: 1 addition & 1 deletion starter-kit.org
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ interested in the actual code implementing the starter kit.
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("org" . "http://orgmode.org/elpa/")
("melpa" . "http://melpa.milkbox.net/packages/")
("melpa" . "http://melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")))
(package-initialize)

Expand Down

0 comments on commit 50d3f3f

Please sign in to comment.