Skip to content

Using AUCTeX from local Git repo

It is also possible to use AUCTeX directly from a local Git repository. Let’s assume you have your Git repositories under ‘~/development/’.

First, you have to fetch a copy of the AUCTeX Git repository. In a shell, change directory to ‘~/development/’ and do:

bash
git clone https://git.savannah.gnu.org/git/auctex.git

Now change directory to ‘~/development/auctex’ and run

make

Now you have to tell Emacs about the plan. Put the following code in your init file:

emacs-lisp
(load "~/development/auctex/auctex-autoloads.el" nil t t)
(with-eval-after-load 'info
  (add-to-list 'Info-additional-directory-list
               "~/development/auctex/doc"))

and you’re finished.

Note for ‘use-package’ users: you can wrap the above recipe with use-package like this:

emacs-lisp
(use-package auctex
  :init
  (load "~/development/auctex/auctex-autoloads.el" nil t t)
  (with-eval-after-load 'info
    (add-to-list 'Info-additional-directory-list
                 "~/development/auctex/doc")))