Hi J,

I have AUCTeX 12.1.0 and Emacs 25.3.1, with spacemacs on top.

I tried out your suggestion (setq TeX-macro-private (quote ("./"
"c:/Users/LilMonkey/texmf/tex/latex/local/"))), but no luck :(

Can you explain what you mean by "set all those variables via customize"?
Do you mean using M-x customize? If yes, I tried that too, but with no
luck.

Might you have other suggestions?

Kind regards,
Brian

On Sun, Jan 14, 2018 at 10:07 PM, <[email protected]> wrote:

> Hi Brian,
>
> I'm also on Windows with AUCTeX 11.90.2 and Emacs 25.3.1.
>
> I wonder if you're missing a quote and a slash in your TeX-macro-private.
> Can you try with
>
> (setq TeX-macro-private (quote ("./" "c:/Users/LilMonkey/texmf/tex/
> latex/local/")))
>
> or even better, set all those variables via customize?
>
> Cheers,
> J
>
> On 2018-01-15 00:44, Brian Merchant wrote:
> > Hi all,
> >
> > I am on Windows. Here is the code I have in my `.emacs` file to enable
> AUCTeX to recognize macros I have defined in my own style files:
> >
> >          (setq TeX-parse-self t) ; Enable parse on load.
> >          (setq TeX-auto-save t) ; Enable parse on save.
> >          (setq-default TeX-master nil); https://www.gnu.org/software/
> auctex/manual/auctex.html
> >          (setq TeX-auto-regexp-list t); https://tex.stackexchange.com/
> questions/47385/adding-custom-macros-to-completion-list-with-auctex
> >          (setq TeX-auto-parse-length 999999)
> >          (setq TeX-macro-private
> >             (list
> >              "./"
> >              "C:/Users/LilMonkey/texmf/tex/latex/local"
> >              ))
> >
> > Logic:
> >
> > * TeX-auto-generate should be running because of `(setq TeX-parse-self
> t)` and `(setq TeX-auto-save t)`: https://tex.stackexchange.com/
> questions/103224/auctex-does-not-parse-own-sty-file
> >
> > * other variables set based on suggestions given in this answer:
> https://tex.stackexchange.com/a/47416/49339
> >
> > * `(setq-default TeX-master nil)` based on AUCTeX manual's
> recommendation, but I don't actually see AUCTeX querying me for the master
> file; I have tried variations where this line is commented out, but no
> difference exists
> >
> > Anyway, I still don't get auto-completion options for macros I have
> defined in my own `*.sty` files under 
> `C:/Users/LilMonkey/texmf/tex/latex/local`.
> What should I do?
>
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to