glynnforrest / salt-mode

Emacs major mode for Salt States
GNU General Public License v3.0
22 stars 5 forks source link

Improve default flyspell behavior by defining a custom predicate #5

Closed joewreschnig closed 7 years ago

joewreschnig commented 7 years ago

salt-mode is a text-mode, not a prog-mode; most global-on flyspell configurations will enable full spellchecking, which is not very useful. However, even flyspell-prog-mode is not a good default, since strings in SLS files are usually just some other configuration file format, or a minion target, etc., which should not be spellchecked. Instead, we want to restrict spellchecking by default to comments and documentation only.

If flyspell is not on, setting a predicate should have no effect.

glynnforrest commented 7 years ago

Great contribution @joewreschnig, thank you!