Skip to content

Commit

Permalink
Add .dir-locals.el for Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 28, 2016
1 parent 7899fc9 commit ca6d287
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
((c++-mode . (
(c-file-style . "k&r")
(c-basic-offset . 4)
(indent-tabs-mode . nil)
(tab-width . 4)
(show-trailing-whitespace . t)
(indicate-empty-lines . t)
(eval . (c-set-offset 'innamespace 0))
(eval . (c-set-offset 'defun-open 0))
(eval . (c-set-offset 'inline-open 0))
(eval . (c-set-offset 'arglist-intro '+))
(eval . (c-set-offset 'arglist-cont 0))
(eval . (c-set-offset 'arglist-cont-nonempty '+))
(eval . (c-set-offset 'substatement-open 0))
(eval . (c-set-offset 'access-label '-))
)))

0 comments on commit ca6d287

Please sign in to comment.