emacs-devel
[Top][All Lists]
Advanced

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

Re: Subversion of user chosen major mode by Emacs.


From: Stefan Monnier
Subject: Re: Subversion of user chosen major mode by Emacs.
Date: Wed, 29 May 2024 11:04:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> But anyway, why do you consider the above kludges wrt auto-mode-alist
> more "kosher" and worthy of our support than the similar kludge you
> could do with major-mode-remap-defaults for Emacs 30 and later?
> They are both kludges one isn't supposed to do.

The "official" way to do it not is by customizing
`major-mode-remap-alist`, e.g.

    (push '(c-mode . c-mode) major-mode-remap-alist)

or do the same via Custom.
And you don't need to do that in a `with-eval-after-load`.


        Stefan




reply via email to

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