From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Turning electric-indent-mode off, for a specific buffer Date: Mon, 13 Jun 2022 05:21:51 +0000 Message-ID: References: <87bkuxe7dt.fsf@yahoo.com> <8735g9e1v0.fsf@yahoo.com> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 13 07:24:03 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0cYV-0000CZ-Ac for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Jun 2022 07:24:03 +0200 Original-Received: from localhost ([::1]:50070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0cYU-0001vf-1z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Jun 2022 01:24:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0cWb-0001vK-1M for help-gnu-emacs@gnu.org; Mon, 13 Jun 2022 01:22:05 -0400 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:22773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0cWY-0006H0-Dy for help-gnu-emacs@gnu.org; Mon, 13 Jun 2022 01:22:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1655097719; x=1655356919; bh=bfU+s+trR1us7NHX/wv1x7vbr43Q2Y7Es0pahOVd/YQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=JV/x1gHxIWH0G3gJVO3sSNv5lJ2y6dTMR36GnboyDBbQOPAysL7QL/iVsRFSgvYh2 ANDwVBCr6jWh30fXKJ0zE7/dxJnMZtYjKyWWIe9HSDk0yrjSBt0yMc4ekczjz63IP7 UYZdlNzFdoEXsqaVad2/s5geO9MMG2Z1358iICMFoYvnN2eOp97cIwJq5yxV13nYL7 oQIpqxXgb9Rt6In260tMTKfBAdJD6diB5f3uhy8JkGOun7q+JB1T3NvnKm/4x6A5LI x0H2g/2rX3AhtCxgb9qNQ2YenYd6yO6yaS8xnDwJpSRgepIolLKuYB3XDCDNwvJuNZ Dglu07b9i3Q/A== In-Reply-To: <8735g9e1v0.fsf@yahoo.com> Feedback-ID: 43053548:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=goncholden@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137760 Archived-At: ------- Original Message ------- On Monday, June 13th, 2022 at 2:25 PM, Po Lu 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`?