Skip to content

Commit

Permalink
Add Emacs .dir-locals.el to set our C/C++ indentation standard
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Oberbrunner <[email protected]>
  • Loading branch information
garyo committed Jul 12, 2024
1 parent e23ef6f commit 6e95184
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")

;; for C and C++, we use 2 space offset, no tabs
((prog-mode . ((c-basic-offset . 2)
(indent-tabs-mode . nil)))

0 comments on commit 6e95184

Please sign in to comment.