Hi Greg,

Greg Bognar via General discussion about AUCTeX <[email protected]> writes:

> In my config, I set the values for TeX-auto-global, TeX-auto-private,
> TeX-auto-local, TeX-style-private, and TeX-style-local variables.
> TeX-style-path is constructed from these.
>
> So I have
>
> (use-package latex
>   :ensure auctex
>   :mode ("\\.tex\\'" . LaTeX-mode)
>   [...]
>   :config
>   [...]
>   TeX-auto-global (concat user-cache-directory "autoparse")
>   [etc]
>
> Is this the right way to do it?  And why am I getting the default values?

I don't use `use-package' so my comments might be off.  First, I think
Tassilo's suggestion is good wrt use `:init' instead of `:config'.
Looking at manual, you should also do

    (use-package tex ; not latex
      :ensure auctex

and use forms after the :init keyword[1], i.e.

      :init
      (setq TeX-auto-global (concat user-cache-directory "autoparse"))

Maybe that helps.

Best, Arash

Footnotes:
[1]  https://github.com/jwiegley/use-package#getting-started

Reply via email to