summaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: b611d45c7351f112b681b27537342b2156a21f2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
((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)