mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:33:59 +08:00
ebf4f09556
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.
28 lines
1.1 KiB
EmacsLisp
28 lines
1.1 KiB
EmacsLisp
;; Emacs settings.
|
|
;; Copyright (C) 2012-2013 Free Software Foundation, Inc.
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation; either version 3 of the License, or
|
|
;; (at your option) any later version.
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
;; GNU General Public License for more details.
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
((tcl-mode . ((tcl-indent-level . 4)
|
|
(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)))
|
|
(c++-mode . ((c-file-style . "GNU")
|
|
(indent-tabs-mode . t)
|
|
(fill-column . 79))))
|