From 25c5412713badef8cf779186174200ecd880b329 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 1 Jul 2017 18:45:57 +0300 Subject: [PATCH] Setup .dir-locals.el to use C-style comments by default gdb/ChangeLog: 2017-07-01 Eli Zaretskii * .dir-locals.el: Automatically switch to C-style comments in versions of Emacs that support the feature. --- gdb/.dir-locals.el | 2 ++ gdb/ChangeLog | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/gdb/.dir-locals.el b/gdb/.dir-locals.el index a2aa1962fa3..48325b14985 100644 --- a/gdb/.dir-locals.el +++ b/gdb/.dir-locals.el @@ -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))))) ) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 708025694cc..32abd426a99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-07-01 Eli Zaretskii + + * .dir-locals.el: Automatically switch to C-style comments in + versions of Emacs that support the feature. + 2017-06-30 Sergio Durigan Junior Pedro Alves -- 2.30.2