Setup .dir-locals.el to use C-style comments by default
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 Jul 2017 15:45:57 +0000 (18:45 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 Jul 2017 15:45:57 +0000 (18:45 +0300)
gdb/ChangeLog:
2017-07-01  Eli Zaretskii  <eliz@gnu.org>

* .dir-locals.el: Automatically switch to C-style comments in
versions of Emacs that support the feature.

gdb/.dir-locals.el
gdb/ChangeLog

index a2aa1962fa36c5ca1f1144e9eb8f6f9dfe75e4c0..48325b149857da473e20284c8973707da5c9f88c 100644 (file)
@@ -26,4 +26,6 @@
            (c-basic-offset . 2)
            (eval . (c-set-offset 'innamespace 0))
            ))
+ (c++-mode . ((eval . (when (fboundp 'c-toggle-comment-style)
+                       (c-toggle-comment-style 1)))))
 )
index 708025694cc366c3f086b6ad09dddf080aa48d7c..32abd426a990a899983a4163822a61f07f244938 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * .dir-locals.el: Automatically switch to C-style comments in
+       versions of Emacs that support the feature.
+
 2017-06-30  Sergio Durigan Junior  <sergiodj@redhat.com>
            Pedro Alves  <palves@redhat.com>