[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] how to disable indentation for tabular-like environment
From: |
Denis Bitouzé |
Subject: |
Re: [AUCTeX] how to disable indentation for tabular-like environment |
Date: |
Thu, 15 Dec 2016 20:27:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
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
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/15
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/15
- Re: [AUCTeX] how to disable indentation for tabular-like environment,
Denis Bitouzé <=
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/15
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Mosè Giordano, 2016/12/16
- Re: [AUCTeX] how to disable indentation for tabular-like environment, Denis Bitouzé, 2016/12/16