Hi Jean-Francois,

2014-10-15 20:21 GMT+02:00 jfbu <[email protected]>:
> I have an environment, everbatim, which is
> like verbatim.
>
> I customized variable LaTeX-verbatim-environments
>
> and font-locking is OK
>
> however when I create via C-c C-e such an environment
> with a pre-existing active region, it gets the usal 2 spaces
> indentation
>
> with verbatim, no such indentation is added
>
> how can I tell AUCTeX not to add indentation for
> everbatim?

There is the `LaTeX-indent-environment-list' variable for that purpose:
--8<---------------cut here---------------start------------->8---
(add-to-list 'LaTeX-indent-environment-list
         '("everbatim" current-indentation))
--8<---------------cut here---------------end--------------->8---
See the style file for the listings package for reference.

Bye,
Mosè

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to