From: Kaushal Modi <kaushal.modi@gmail.com>
To: 27639@debbugs.gnu.org
Subject: bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual
Date: Mon, 10 Jul 2017 22:36:51 +0000 [thread overview]
Message-ID: <CAFyQvY2EJPv6c_YB3NujTPBm6ttPKieSxP4-mewYqEkiFNKHcQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY3my17J9r3qCuqYRN4WWQ=AwSgbp8xRgr02Yqdn=5rwpw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 157 bytes --]
Hello,
I have attached this patch based off emacs-25 branch that clarifies the
documentation about minor mode enabling in .dir-locals.el.
--
Kaushal Modi
[-- Attachment #1.2: Type: text/html, Size: 312 bytes --]
[-- Attachment #2: 0001-Add-documentation-on-enabling-minor-modes-using-.dir.patch --]
[-- Type: application/octet-stream, Size: 2203 bytes --]
From dcae725b40c7200c0633d3594533028994593793 Mon Sep 17 00:00:00 2001
From: Kaushal Modi <kaushal.modi@gmail.com>
Date: Mon, 10 Jul 2017 18:31:42 -0400
Subject: [PATCH] Add documentation on enabling minor modes using
.dir-locals.el
* doc/emacs/custom.texi (Directory Variables): Add an example that
shows how a minor mode can be enabled in a .dir-local.el (Bug#27639).
Clarify that indent-tabs-mode is not a minor mode.
---
doc/emacs/custom.texi | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index 51992ea028..a174f40f2b 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -1323,7 +1323,8 @@ Directory Variables
@example
((nil . ((indent-tabs-mode . t)
- (fill-column . 80)))
+ (fill-column . 80)
+ (mode . auto-fill)))
(c-mode . ((c-file-style . "BSD")
(subdirs . nil)))
("src/imported"
@@ -1332,13 +1333,16 @@ Directory Variables
@end example
@noindent
-This sets @samp{indent-tabs-mode} and @code{fill-column} for any file
-in the directory tree, and the indentation style for any C source
-file. The special @code{subdirs} element is not a variable, but a
-special keyword which indicates that the C mode settings are only to
-be applied in the current directory, not in any subdirectories.
-Finally, it specifies a different @file{ChangeLog} file name for any
-file in the @file{src/imported} subdirectory.
+This sets the variables @samp{indent-tabs-mode} and @code{fill-column}
+for any file in the directory tree, and the indentation style for any
+C source file. The special @code{mode} element specifies the minor
+mode to be enabled. So @code{(mode . auto-fill)} specifies that the
+minor mode @code{auto-fill-mode} needs to be enabled. The special
+@code{subdirs} element is not a variable, but a special keyword which
+indicates that the C mode settings are only to be applied in the
+current directory, not in any subdirectories. Finally, it specifies a
+different @file{ChangeLog} file name for any file in the
+@file{src/imported} subdirectory.
@findex add-dir-local-variable
@findex delete-dir-local-variable
--
2.13.0
next prev parent reply other threads:[~2017-07-10 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY2EJPv6c_YB3NujTPBm6ttPKieSxP4-mewYqEkiFNKHcQ@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=27639@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.