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: Mosè Giordano
Subject: Re: [AUCTeX] verbatim like environment and automatic indentation
Date: Wed, 15 Oct 2014 20:59:07 +0200

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è



reply via email to

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