[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in man
bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual
Mon, 10 Jul 2017 11:55:58 +0000
I recently stumbled across this Reddit post where a user is trying to enable a minor mode in .dir-locals.el. But he was doing that by setting the mode name to `t'.
We generally(?) enable minor modes by doing (mode . MINOR) in .dir-locals.el.
So I thought of looking up the Emacs manual to check that:
Here's an example of a .dir-locals.el file:
((nil . ((indent-tabs-mode . t)
(fill-column . 80)))
This sets ‘indent-tabs-mode’ and fill-column for any file in the directory tree.
That would lead the readers to think that that's how *any* minor mode can be enabled from .dir-locals.el.
I think that example should be fixed by using a minor mode example that can be enabled using the (mode . MINOR) syntax.
- bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual,
Kaushal Modi <=