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 05:21:51 +0000	[thread overview]
Message-ID: <xHK6FuHsmUryds_2CmOqkwse37gilvYh0iedU0e49VDbiPFZWHGZ0C16XI3NrSzZ_-AqjDtMnNA6hg2clOdFO_IVMsvycDHjs8OVHkUP1iY=@protonmail.com> (raw)
In-Reply-To: <8735g9e1v0.fsf@yahoo.com>


------- 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	other threads:[~2022-06-13  5:21 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 [this message]
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
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='xHK6FuHsmUryds_2CmOqkwse37gilvYh0iedU0e49VDbiPFZWHGZ0C16XI3NrSzZ_-AqjDtMnNA6hg2clOdFO_IVMsvycDHjs8OVHkUP1iY=@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).