|
From: | Brian Merchant |
Subject: | Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros? |
Date: | Mon, 15 Jan 2018 10:59:40 -0800 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |