help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Turning electric-indent-mode off, for a specific buffer


From: goncholden
Subject: Re: Turning electric-indent-mode off, for a specific buffer
Date: Mon, 13 Jun 2022 05:21:51 +0000

------- Original Message -------
On Monday, June 13th, 2022 at 2:25 PM, Po Lu <luangruo@yahoo.com> wrote:


> goncholden goncholden@protonmail.com writes:
>
> > What is the way to disable `electric-indent-mode` in a buffer?
>
>
> To turn off electric-indent-local-mode, just as you would any other
> minor mode.

Those are functions with usage

(electric-indent-mode 0)  ; turn mode off buffer-local
(electric-indent-local-mode 0)

But I also found the variable `electric-indent-mode`, and was using

(setq electric-indent-mode nil)

I do not know if the variable is buffer-local.

What's the recommended way to do this, disabling `electric-indent-mode`?









reply via email to

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