auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] TeX-latex-mode and override advice


From: Tassilo Horn
Subject: Re: [AUCTeX] TeX-latex-mode and override advice
Date: Thu, 15 Oct 2015 07:59:52 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Mandar Mitra <address@hidden> writes:

> Thanks for your response! As I wrote in a follow-up, a broken
> auto-complete package was causing the problem.

Good to know it hasn't been my fault. :-)

> Answers for completeness:
>
> Tassilo Horn wrote (Wed, Oct 14, 2015 at 09:54:34PM +0200):
>> How do you use the git version, e.g., do you "make install" or just run
>> it from the checkout directory?  And how do you load it in your init
>> file?
>
> I just run "make", and run it from the checkout directory.
>
> In my init file, I have
>
> (add-to-list 'load-path "/home/mandar/.emacs.d/auctex.git")
> (add-to-list 'load-path "/home/mandar/.emacs.d/auctex.git/preview")

There is no preview subdirectory anymore.  It's now top-level mixed with
the "normal" AUCTeX files.

> (load "auctex.el" nil t t)
> (load "preview-latex.el" nil t t)
> (setq TeX-data-directory "/home/mandar/.emacs.d/auctex.git/")

Hm, I think this will result in `TeX-lisp-directory' being
"~/.emacs.d/auctex.git/auctex/" which is wrong but maybe doesn't matter
as you put auctex on the `load-path' yourself.  I'm using this:

--8<---------------cut here---------------start------------->8---
(setq TeX-data-directory "~/Repos/el/auctex"
      TeX-lisp-directory TeX-data-directory)

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

(add-to-list 'Info-additional-directory-list "~/Repos/el/auctex/doc")
--8<---------------cut here---------------end--------------->8---

That that way, `TeX-lisp-directory' is put onto `load-path' when loading
auctex.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]