* Is it wrong for a minor-mode to modify major-mode settings.
@ 2016-04-15 4:14 Mohammed Sadik P. K.
2016-04-15 12:10 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Sadik P. K. @ 2016-04-15 4:14 UTC (permalink / raw)
To: emacs-devel
Is it wrong (or against convention) if a minor-mode changes major-mode
configurations:
specifically: I need to have a minor mode run only for c-mode, which
deletes some keywords in c-mode and introduces several new keywords.
Also, this minor mode shall change a few syntax rules. Is it better to
create a derived mode for this?
Please CC me as I'm not on the list.
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is it wrong for a minor-mode to modify major-mode settings.
2016-04-15 4:14 Is it wrong for a minor-mode to modify major-mode settings Mohammed Sadik P. K.
@ 2016-04-15 12:10 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2016-04-15 12:10 UTC (permalink / raw)
To: emacs-devel
> Is it wrong (or against convention) if a minor-mode changes major-mode
> configurations:
It's definitely not wrong. It's maybe somewhat unusual but not against
convention either.
> specifically: I need to have a minor mode run only for c-mode, which
> deletes some keywords in c-mode and introduces several new keywords.
> Also, this minor mode shall change a few syntax rules. Is it better to
> create a derived mode for this?
You might be better off with a derived mode, indeed. But it all depends
on the particular case.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-15 12:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 4:14 Is it wrong for a minor-mode to modify major-mode settings Mohammed Sadik P. K.
2016-04-15 12:10 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).