Le 15/12/16 à 19h56, Mosè Giordano a écrit : > Hi Denis,
Hi Mosè, > 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: Okay, I've written your advise as a comment at 1st line in my `.emacs'! :) > (with-eval-after-load "latex" > (add-to-list 'LaTeX-indent-environment-list '("myenv" current-indentation))) > > This should do the trick. Indeed, no more error: thanks. Maybe I didn't understand what `current-indentation' is supposed to do but with the following: ┌──── │ \begin{myenv} │ \begin{frame} │ Foo. │ \end{frame} │ \end{myenv} └──── and the cursor on the line: ┌──── │ \begin{frame} └──── pressing <TAB> does indent the line. -- Denis _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex