unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: goncholden <goncholden@protonmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: goncholden via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Turning electric-indent-mode off, for a specific buffer
Date: Mon, 13 Jun 2022 12:01:48 +0000	[thread overview]
Message-ID: <ijGDosSV6chbrEV2xTHcGUGzLTecHwqYLFJEED5YXgFM3NIIfg5W3zUEjbbZHa_-nh-DdfLpsDmcpxt9R_o3Xzv3sqFB8weJB4sQV2UwuMM=@protonmail.com> (raw)
In-Reply-To: <874k0odc76.fsf@yahoo.com>


------- 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	other threads:[~2022-06-13 12:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-12 21:20 Turning electric-indent-mode off, for a specific buffer goncholden via Users list for the GNU Emacs text editor
2022-06-13  0:26 ` Po Lu
2022-06-13  1:31   ` goncholden
2022-06-13  2:25     ` Po Lu
2022-06-13  5:21       ` goncholden
2022-06-13  5:42         ` Po Lu
2022-06-13  6:07           ` goncholden
2022-06-13 10:53             ` goncholden
2022-06-13 11:39               ` Po Lu
2022-06-13 12:01                 ` goncholden [this message]
2022-06-13 12:15                   ` Po Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ijGDosSV6chbrEV2xTHcGUGzLTecHwqYLFJEED5YXgFM3NIIfg5W3zUEjbbZHa_-nh-DdfLpsDmcpxt9R_o3Xzv3sqFB8weJB4sQV2UwuMM=@protonmail.com' \
    --to=goncholden@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).