]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable electric quotes for most files in the Emacs codebase.
authorPhilipp Stephani <phst@google.com>
Wed, 2 Jan 2019 21:01:54 +0000 (22:01 +0100)
committerPhilipp Stephani <phst@google.com>
Tue, 15 Jan 2019 00:36:47 +0000 (01:36 +0100)
* .dir-locals.el: Disable electric quotes in comments and strings for
C, Emacs Lisp, and Texinfo, as the Emacs codebase doesn't use them.

.dir-locals.el

index 68eb58fa18bbfb6500036566e84e620be1fbcdf7..96473a7086df8f62c6868768ffebbe84721e86bc 100644 (file)
@@ -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))))