[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
Tue, 11 Jul 2017 19:37:42 +0300
> From: Kaushal Modi <address@hidden>
> Date: 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'.
indent-tabs-mode is the mode variable, so setting it to t is not a
> We generally(?) enable minor modes by doing (mode . MINOR) in .dir-locals.el.
You could do it either way. Also, some modes don't have such a
variable, so only the latter way will work.
But why do you think we should only advertise one method, but not the
other? There's no magic here, just legitimate use of public
documented variables: 'mode' is a variable and so is 'indent-tabs-mode'.
So I think I don't get your motivation for the report and for the
patch you provided.