auctex-devel
[Top][All Lists]
Advanced

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

Re: oddity with TeX-style-private ?


From: Tassilo Horn
Subject: Re: oddity with TeX-style-private ?
Date: Fri, 23 Oct 2020 17:56:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Uwe Brauer <oub@mat.ucm.es> writes:

>> Do you have a customization of `TeX-style-path'?  That's normally
>> built from `TeX-style-private' and the other variables (see the
>> docstring) but you can also customize it and then it overrides the
>> others.
>
> Ah, I do, here is an extract of my custom-init.el
>
>  '(TeX-style-global
>    "/home/oub/emacs/site-lisp/packages/auctex-git/auctex/style")
>  '(TeX-style-path
>    '("/home/oub/emacs/site-lisp/packages/auctex-git/auctex/style" "auto" 
> "style"))
>  '(TeX-style-private 
> '("/home/oub/ALLES/emacs/site-lisp/auctex-private-style"))
>
> Not sure why I did this. So what is the best practise?

Since I have no clue what your directory structure is, I have no clue.
But customizing both TeX-style-{global,private} *and* TeX-style-path is
strange given that the latter's default value is built from the former.

>     1. Setting TeX-style-global and TeX-style-private and leave
>        TeX-style-path out?

Why setting any of them?  Why is ~/.emacs.d/auctex/style not fine for
private styles?  If I had some, I'd probably keep them in
~/Repos/my-auctex-styles/ and simply use a symlink
~/.emacs.d/auctex/style -> ~/Repos/my-auctex-styles/.

>     2. Set only TeX-style-private. I do, however, compile auctex from
>        master and therefore have 
>
> (setq load-path (cons (expand-file-name 
> "~/emacs/site-lisp/packages/auctex-git")  load-path))
> (setq load-path (cons (expand-file-name 
> "~/emacs/site-lisp/packages/auctex-git/auctex")  load-path))

I also use the auctex master (or some other branch) checked out to
~/Repos/el/auctex/.  I just do

  ./autogen.sh && ./configure --with-lispdir=. && make

(i.e., I don't "make install") and use these auctex related
configurations in my ~/.emacs.

--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---

Then TeX-style-global is correct.  The important thing is the setting
for `TeX-data-directory' and `TeX-lisp-directory' whose normal values
are only correct when auctex is installed.

Bye,
Tassilo

Attachment: signature.asc
Description: PGP signature


reply via email to

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