From: Philipp Stephani <p.stephani2@gmail.com>
To: eggert@cs.ucla.edu, emacs-devel@gnu.org, eliz@gnu.org
Cc: Philipp Stephani <phst@google.com>
Subject: [PATCH] Disable electric quotes for most files in the Emacs codebase.
Date: Sun, 6 Jan 2019 22:58:02 +0100 [thread overview]
Message-ID: <20190106215802.25745-1-phst@google.com> (raw)
In-Reply-To: <CAArVCkQedBivjWKY9+uTc2mQ+1RVsfUsrsrEr9P9mjxOiZCOzA@mail.gmail.com>
* .dir-locals.el: Disable electric quotes in comments and strings, as
the Emacs codebase doesn't use them.
---
.dir-locals.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/.dir-locals.el b/.dir-locals.el
index 68eb58fa18..96473a7086 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -2,8 +2,12 @@
(sentence-end-double-space . t)
(fill-column . 70)))
(c-mode . ((c-file-style . "GNU")
- (c-noise-macro-names . ("UNINIT" "CALLBACK" "ALIGN_STACK"))))
- (objc-mode . ((c-file-style . "GNU")))
+ (c-noise-macro-names . ("UNINIT" "CALLBACK" "ALIGN_STACK"))
+ (electric-quote-comment . nil)
+ (electric-quote-string . nil)))
+ (objc-mode . ((c-file-style . "GNU")
+ (electric-quote-comment . nil)
+ (electric-quote-string . nil)))
(log-edit-mode . ((log-edit-font-lock-gnu-style . t)
(log-edit-setup-add-author . t)))
(change-log-mode . ((add-log-time-zone-rule . t)
@@ -11,4 +15,8 @@
(bug-reference-url-format . "https://debbugs.gnu.org/%s")
(mode . bug-reference)))
(diff-mode . ((mode . whitespace)))
- (emacs-lisp-mode . ((indent-tabs-mode . nil))))
+ (emacs-lisp-mode . ((indent-tabs-mode . nil)
+ (electric-quote-comment . nil)
+ (electric-quote-string . nil)))
+ (texinfo-mode . ((electric-quote-comment . nil)
+ (electric-quote-string . nil))))
--
2.17.2 (Apple Git-113)
next prev parent reply other threads:[~2019-01-06 21:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-02 21:21 [PATCH] Disable electric quotes in the Emacs codebase Philipp Stephani
2019-01-02 21:58 ` Paul Eggert
2019-01-02 22:16 ` Dmitry Gutov
2019-01-03 13:48 ` Eli Zaretskii
2019-01-03 19:14 ` Paul Eggert
2019-01-03 19:34 ` Eli Zaretskii
2019-01-06 0:40 ` Philipp Stephani
2019-01-06 2:12 ` Paul Eggert
2019-01-06 3:38 ` Eli Zaretskii
2019-01-06 21:34 ` Philipp Stephani
2019-01-06 21:58 ` Philipp Stephani [this message]
2019-01-09 15:30 ` [PATCH] Disable electric quotes for most files " Eli Zaretskii
2019-01-15 0:40 ` Philipp Stephani
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=20190106215802.25745-1-phst@google.com \
--to=p.stephani2@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=phst@google.com \
/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.