diff options
author | Arsen Arsenović <arsen@aarsen.me> | 2024-07-31 16:53:35 +0200 |
---|---|---|
committer | Arsen Arsenović <arsen@gcc.gnu.org> | 2024-07-31 20:38:27 +0200 |
commit | ebf4f095568e8e4af042f3e5a8cb6558888d9172 (patch) | |
tree | 1f2637c1d5f903a5418b5acf08f9beb2cf2f752e | |
parent | 69a9ee05c68bd1fe7f5b3be86baacc8f0a599915 (diff) | |
download | gcc-ebf4f095568e8e4af042f3e5a8cb6558888d9172.zip gcc-ebf4f095568e8e4af042f3e5a8cb6558888d9172.tar.gz gcc-ebf4f095568e8e4af042f3e5a8cb6558888d9172.tar.bz2 |
dir-locals: apply our C settings in C++ also
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.
-rw-r--r-- | .dir-locals.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index fa031cb..2c12b38 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -18,6 +18,10 @@ (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)))) |