Skip to content

Commit 813645b

Browse files
committed
Add emacs config
This sets Linux-style C indenting (cf. GNU-style default; AFAIK editorconfig cannot say this) and sets indent to 2-spaces no-tabs in case you don't have the editorconfig plugin installed
1 parent 3de6faa commit 813645b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/.dir-locals.el

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
((c-mode . ((indent-tabs-mode . nil)))
2+
(c++-mode . ((indent-tabs-mode . nil)))
3+
(nil . ((c-file-style . "linux")
4+
(c-basic-offset . 2))))

0 commit comments

Comments
 (0)