From 6e95184e5af97c80c83cd7b17362159c190c1487 Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Thu, 16 May 2024 12:13:42 -0400 Subject: [PATCH] Add Emacs .dir-locals.el to set our C/C++ indentation standard Signed-off-by: Gary Oberbrunner --- .dir-locals.el | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 00000000..4fa9120b --- /dev/null +++ b/.dir-locals.el @@ -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)))