TeXnicien de Surface <[email protected]> writes:

> I'd like to know (one of) the best way(s) to grab aucTeX on the git
> repository and install it somewhere on my machine.

Clone the git repository:

  $ cd ~/code # Whatever directory you wand
  $ git clone git://git.savannah.gnu.org/auctex.git

Now you have the directory ~/code/auctex/ that includes the auctex
source code.  Now build auctex:

  $ cd ~/code/auctex
  $ ./configure
  $ make

Now you have two choices: (1) install it system-wide using "sudo make
install", or (2) run it straight from the cloned directory.  In the
latter case, you might want to generate an info index using:

  $ cd ~/code/auctex/docs
  $ for x in *.info; do install-info --dir-file=dir $x;done

Now you have to configure emacs by putting this into your ~/.emacs:

--8<---------------cut here---------------start------------->8---
;; The next 4 lines only if you run auctex from the cloned
;; directory, i.e., you didn't "make install"
(setq TeX-data-directory "~/code/auctex/")
(add-to-list 'load-path "~/code/auctex/")
(add-to-list 'load-path "~/code/auctex/preview/")
(add-to-list 'Info-directory-list "~/code/auctex/doc")

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

;; Make AUCTeX aware of style files and multi-file documents
(setq TeX-parse-self t)
(setq TeX-auto-save t)
--8<---------------cut here---------------end--------------->8---

Now you are done.  From time to time, you might want to update the clone
using:

  $ cd ~/code/auctex
  $ git pull
  $ make

If you used option (1) above, remember to do a "make install"
afterwards, too.

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to