auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] how to disable indentation for tabular-like environment


From: Mosè Giordano
Subject: Re: [AUCTeX] how to disable indentation for tabular-like environment
Date: Fri, 16 Dec 2016 15:44:09 +0100

2016-12-16 15:34 GMT+01:00 Denis Bitouzé <address@hidden>:
> I see. So you meant `myenv' instead of `foo', don't you?

Yes, I didn't look back to the name of the environment ;-)

> Anyway, regarding your explanation, I couldn't see the point with the
> `\' before `\|myenv' in:
>
>   ┌────
>   │ (setq LaTeX-document-regexp "document\\|myenv")
>   └────

The plain regexp would actually be

    document\|myenv

but in Lisp code you have to escape the backslash, so you should use


    document\\|myenv

See https://www.emacswiki.org/emacs/RegularExpression#RegexpsInEmacs

Bye,
Mosè



reply via email to

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