about summary refs log tree commit diff
path: root/third_party/nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T04·13+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T04·13+0100
commit62c18c989890d5aebca5315f7bf7d8a367b0a87b (patch)
tree9be2ffc7ea59ec67608927efa87b87680fa0a22f /third_party/nix
parent95a57f15ca795eb1b36363b7d6db6b88bfe444e2 (diff)
fix(3p/nix): Set C++ style to "Google" in Emacs locals r/763
Diffstat (limited to 'third_party/nix')
-rw-r--r--third_party/nix/.dir-locals.el17
-rw-r--r--third_party/nix/.editorconfig26
2 files changed, 1 insertions, 42 deletions
diff --git a/third_party/nix/.dir-locals.el b/third_party/nix/.dir-locals.el
index 2d1117f4bd..92aa816f10 100644
--- a/third_party/nix/.dir-locals.el
+++ b/third_party/nix/.dir-locals.el
@@ -1,16 +1 @@
-((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 '-))
-  )))
+((c++-mode . ((c-file-style . "google"))))
diff --git a/third_party/nix/.editorconfig b/third_party/nix/.editorconfig
deleted file mode 100644
index 887ecadba5..0000000000
--- a/third_party/nix/.editorconfig
+++ /dev/null
@@ -1,26 +0,0 @@
-# EditorConfig configuration for nix
-# http://EditorConfig.org
-
-# Top-most EditorConfig file
-root = true
-
-# Unix-style newlines with a newline ending every file, utf-8 charset
-[*]
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
-charset = utf-8
-
-# Match nix files, set indent to spaces with width of two
-[*.nix]
-indent_style = space
-indent_size = 2
-
-# Match c++/shell/perl, set indent to spaces with width of four
-[*.{hpp,cc,hh,sh,pl}]
-indent_style = space
-indent_size = 4
-
-# Match diffs, avoid to trim trailing whitespace
-[*.{diff,patch}]
-trim_trailing_whitespace = false