Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Nov 1, 2021
2 parents 03532e8 + 7006d6f commit dc1e498
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
(java-mode (indent-tabs-mode . nil))
(perl-mode (indent-tabs-mode . nil))
(xml-mode (indent-tabs-mode . nil))
;; In C code indentation is 4 spaces and in C++ 2 spaces
;; erts/ overrides C++ to 4 spaces
(c++-mode
(indent-tabs-mode . nil)
(c-basic-offset . 2))
(c-basic-offset . 4))
(c-mode
(indent-tabs-mode . nil)
(c-basic-offset . 4)))
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://EditorConfig.org
;
; To use this from emacs install the editorconfig package

root = true

[*]
end_of_line = LF

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
# Adding trim_trailing_whitespace removes trailing
# from entire buffer on save and we do not want that
# trim_trailing_whitespace = true

[{Makefile*,**.mk*}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
6 changes: 0 additions & 6 deletions erts/.dir-locals.el

This file was deleted.

6 changes: 6 additions & 0 deletions lib/wx/.dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;; wx Emacs settings
(
;; In C++ code indentation is 2 spaces
(c++-mode
(indent-tabs-mode . nil)
(c-basic-offset . 2)))
2 changes: 2 additions & 0 deletions lib/wx/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.{cpp,hpp}]
indent_size = 2

0 comments on commit dc1e498

Please sign in to comment.