Skip to content

Commit 0ed2191

Browse files
committed
Use .dir-locals.el to get project specific indentation
1 parent cd1d98f commit 0ed2191

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.dir-locals.el

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
;; -*- emacs-lisp -*-
2+
((nil .
3+
(
4+
(tab-width . 4)
5+
(indent-tabs-mode . nil)
6+
(fill-column . 80)
7+
))
8+
(c++-mode .
9+
(
10+
(indent-tabs-mode . nil)
11+
(tab-width . 4)
12+
(show-trailing-whitespace . t)
13+
(indicate-empty-lines . t)
14+
(c-basic-offset . 4)
15+
(eval . (progn
16+
(c-set-offset 'innamespace '0)
17+
(c-set-offset 'inline-open '0)
18+
)
19+
)
20+
)
21+
)
22+
)

0 commit comments

Comments
 (0)