[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it wrong for a minor-mode to modify major-mode settings.
From: |
Stefan Monnier |
Subject: |
Re: Is it wrong for a minor-mode to modify major-mode settings. |
Date: |
Fri, 15 Apr 2016 08:10:49 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> 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