vte2.91/.dir-locals.el

20 lines
646 B
EmacsLisp
Raw Normal View History

2022-05-14 03:16:03 +08:00
((c-mode . ((c-file-style . "GNU")
(indent-tabs-mode . nil)
(c-basic-offset . 8)
(tab-width . 8)
(show-trailing-whitespace . t)))
(c++-mode . ((c-file-style . "GNU")
(indent-tabs-mode . nil)
(c-basic-offset . 8)
(tab-width . 8)
(show-trailing-whitespace . t)))
(vala-mode . ((c-file-style . "GNU")
(indent-tabs-mode . nil)
(c-basic-offset . 2)
(tab-width . 2)
(show-trailing-whitespace . t))))
(defun my-c-setup ()
(c-set-offset 'innamespace [0]))
(add-hook 'c++-mode-hook 'my-c-setup)