Brian Merchant
2018-01-14 23:44:38 UTC
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?
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?