unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Understanding why mode keyword shouldn't be used for minor modes in .dir-locals.el
@ 2018-12-24 16:06 Kaushal Modi
  2018-12-24 18:20 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Kaushal Modi @ 2018-12-24 16:06 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hello,

From the manual node (emacs) Specifying File Variables:

> Do not use the ‘mode’ keyword for minor modes.  To enable or disable
a minor mode in a local variables list, use the ‘eval’ keyword with a
Lisp expression that runs the mode command (*note Minor Modes::).

Though, I have been using (mode . auto-fill) in my .dir-locals.el for ages,
and it works great. And it's less verbose than (eval . (auto-fill-mode)).

So I'd like to understand why the manual suggests *not* to use the mode
keyword for minor modes.

Thanks.

--
Kaushal Modi


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Understanding why mode keyword shouldn't be used for minor modes in .dir-locals.el
  2018-12-24 16:06 Understanding why mode keyword shouldn't be used for minor modes in .dir-locals.el Kaushal Modi
@ 2018-12-24 18:20 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2018-12-24 18:20 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: Help Gnu Emacs mailing list


https://debbugs.gnu.org/8613

(this reference brought to you by vc-annotate)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-24 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-24 16:06 Understanding why mode keyword shouldn't be used for minor modes in .dir-locals.el Kaushal Modi
2018-12-24 18:20 ` Glenn Morris

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).