]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dir-locals: apply our C settings in C++ also
authorArsen Arsenović <arsen@aarsen.me>
Wed, 31 Jul 2024 14:53:35 +0000 (16:53 +0200)
committerArsen Arsenović <arsen@gcc.gnu.org>
Wed, 31 Jul 2024 18:38:27 +0000 (20:38 +0200)
This also works with Emacs 30 Tree-Sitter C and C++ modes, as they are
submodes.

ChangeLog:

* .dir-locals.el: Change c-mode to a list of C, C++ and ObjC
modes that Emacs currently provides.

.dir-locals.el

index fa031cbded9909889dbe4442182a8ae9721b6c29..2c12b3866633b08f190a223bedf5b15f4c0af6e6 100644 (file)
              (tcl-continued-indent-level . 4)
              (indent-tabs-mode . t)))
  (nil . ((bug-reference-url-format . "https://gcc.gnu.org/PR%s")))
+ ;; Please keep C and C++ in sync.
  (c-mode . ((c-file-style . "GNU")
            (indent-tabs-mode . t)
-           (fill-column . 79))))
+           (fill-column . 79)))
+ (c++-mode . ((c-file-style . "GNU")
+             (indent-tabs-mode . t)
+             (fill-column . 79))))