Skip to content

Commit

Permalink
Add .dir-locals and set c-basic-offset to 2.
Browse files Browse the repository at this point in the history
This makes it easier for emacs users to automatically get the right
2-space indentation when they edit curl source files.

c++-mode is in there as well because Emacs can't easily know if
something is a C or C++ header.

Closes curl#574
  • Loading branch information
Andersbakken authored and bagder committed Dec 23, 2015
1 parent c208c78 commit 04cb909
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;;; Directory Local Variables
;;; See Info node `(emacs) Directory Variables' for more information.

((nil . ((indent-tabs-mode . nil)
(show-trailing-whitespace . t)))
(c-mode . ((c-basic-offset . 2)
))
(c++-mode . ((c-basic-offset . 2)
))
)

0 comments on commit 04cb909

Please sign in to comment.