emacs-devel
[Top][All Lists]
Advanced

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

Re: bug#55862: Removing indent-tabs-mode set to t by default


From: Sean Whitton
Subject: Re: bug#55862: Removing indent-tabs-mode set to t by default
Date: Sun, 12 Jun 2022 20:00:44 -0500
User-agent: Notmuch/0.36 Emacs/29.0.50 (x86_64-pc-linux-gnu)

Hello,

On Thu 09 Jun 2022 at 06:53PM +03, Eli Zaretskii wrote:

>> Date: Thu, 09 Jun 2022 13:34:52 +0000
>> From: goncholden <goncholden@protonmail.com>
>> Cc: Eli Zaretskii <eliz@gnu.org>, 55862@debbugs.gnu.org
>>
>> > You have to put the setting into the major mode hook where you're
>> > interested in setting it.
>>
>> Fantastic!  Could you show me how I can do that exactly?
>
> Something like this:
>
>  (defun my-FOO-stuff ()
>    (setq indent-tabs-mode nil)
>  (add-hook 'FOO-mode-hook 'my-FOO-stuff)
>
> (Replace "FOO" with the actual mode name.)

Perhaps also worth mentioning the little-known:

    (require 'mode-local)
    (setq-mode-local foo-mode indent-tabs-mode nil)

-- 
Sean Whitton



reply via email to

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