unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual
@ 2017-07-10 11:55 Kaushal Modi
  2017-07-10 22:36 ` Kaushal Modi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kaushal Modi @ 2017-07-10 11:55 UTC (permalink / raw)
  To: 27639

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

Hello,

I recently stumbled across this Reddit post[1] 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)))
<snip>

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.

[1]:
https://www.reddit.com/r/emacs/comments/6malb6/disable_warning_message_when_enabling_minor_modes/
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1328 bytes --]

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

end of thread, other threads:[~2019-11-08  1:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10 11:55 bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual Kaushal Modi
2017-07-10 22:36 ` Kaushal Modi
2017-07-11 16:37 ` Eli Zaretskii
2017-07-11 16:57   ` Kaushal Modi
2017-07-11 17:32     ` Eli Zaretskii
2019-11-08  1:31       ` Stefan Kangas
2017-07-15  3:14 ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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