Hi Denis, 2016-12-15 18:37 GMT+01:00 Denis Bitouzé <dbito...@wanadoo.fr>: > Could you please elaborate the trick? I added: > > ┌──── > │ (add-to-list 'LaTeX-indent-environment-list '("myenv" > current-indentation)) > └──── > > to my `.emacs' but the got the error: > > ┌──── > │ Warning (initialization): An error occurred while loading > ‘/home/bitouze/.emacs’: > │ > │ Symbol's value as variable is void: LaTeX-indent-environment-list > └──── > > despite I'm using the last AUCTeX version: (elpa) auctex-11.89.7.
When you use `add-to-list' is almost always a good idea to wrap it in a `with-eval-after-load' (or `eval-after-load' in older Emacsens), unless you know when the variable is defined in your init file: (with-eval-after-load "latex" (add-to-list 'LaTeX-indent-environment-list '("myenv" current-indentation))) This should do the trick. Bye, Mosè _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex