auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] verbatim like environment and automatic indentation


From: jfbu
Subject: Re: [AUCTeX] verbatim like environment and automatic indentation
Date: Wed, 15 Oct 2014 21:23:13 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Le 15/10/2014 20:59, Mosè Giordano a écrit :
Hi Jean-Francois,

2014-10-15 20:21 GMT+02:00 jfbu <address@hidden>:
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
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex


Problem solved, thanks Mosè and Tassilo!

best regards,
Jean-François




reply via email to

[Prev in Thread] Current Thread [Next in Thread]