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 12:01:48 +0000

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


> goncholden goncholden@protonmail.com writes:
>
> > Doing "C-h v electric-indent-mode" says that setting this variable
> > directly does not take effect, but one can customize it. It is very
> > confusing. How is it ok to customize it and what happens when you do?
> >
> > Perhaps this needs change so one does not customize it?
>
>
> electric-indent-mode is a global minor mode.
> Customizing it turns the mode on or off, while setting the variable
> itself has no effect.

Then customizing electric-indent-mode does not customize the variable but the 
minor-mode?  If I remember correctly, when defining a minor-mode, a variable is 
also created automatically.  From your discussion, it seems that there would 
also exist a function with the same name.



reply via email to

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