From 401bf3e899ac84d062c86da469c33c662f969ef8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 May 2015 16:07:13 -0700 Subject: [PROPOSED PATCH 2/2] Use Electric Punct when editing Emacs source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a companion to the patch proposed in Bug#20385. The idea is to let maintainers quote ‘like this’ in doc strings just as easily as they traditionally quote `like this'. * .dir-locals.el: Add electric-punct-comment, electric-punct-paragraph. (emacs-lisp-mode): Add electric-punct-string. --- .dir-locals.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 9853d7b..9c73abe 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,5 +1,7 @@ ((nil . ((tab-width . 8) (sentence-end-double-space . t) + (electric-punct-comment . t) + (electric-punct-paragraph . t) (fill-column . 70))) (c-mode . ((c-file-style . "GNU"))) (objc-mode . ((c-file-style . "GNU"))) @@ -10,4 +12,5 @@ (bug-reference-url-format . "http://debbugs.gnu.org/%s") (mode . bug-reference))) (diff-mode . ((mode . whitespace))) - (emacs-lisp-mode . ((indent-tabs-mode . nil)))) + (emacs-lisp-mode . ((electric-punct-string . t) + (indent-tabs-mode . nil)))) -- 2.1.0