File tree 5 files changed +30
-9
lines changed
5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 5
5
(java-mode (indent-tabs-mode . nil ))
6
6
(perl-mode (indent-tabs-mode . nil ))
7
7
(xml-mode (indent-tabs-mode . nil ))
8
- ; ; In C code indentation is 4 spaces and in C++ 2 spaces
9
- ; ; erts/ overrides C++ to 4 spaces
10
8
(c++-mode
11
9
(indent-tabs-mode . nil )
12
- (c-basic-offset . 2 ))
10
+ (c-basic-offset . 4 ))
13
11
(c-mode
14
12
(indent-tabs-mode . nil )
15
13
(c-basic-offset . 4 )))
Original file line number Diff line number Diff line change
1
+ ; This file is for unifying the coding style for different editors and IDEs.
2
+ ; More information at http://EditorConfig.org
3
+ ;
4
+ ; To use this from emacs install the editorconfig package
5
+
6
+ root = true
7
+
8
+ [* ]
9
+ end_of_line = LF
10
+
11
+ [* ]
12
+ indent_style = space
13
+ indent_size = 4
14
+ insert_final_newline = true
15
+ # Adding trim_trailing_whitespace removes trailing
16
+ # from entire buffer on save and we do not want that
17
+ # trim_trailing_whitespace = true
18
+
19
+ [{Makefile* ,** .mk* } ]
20
+ # Use tabs for indentation (Makefiles require tabs)
21
+ indent_style = tab
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ; ; wx Emacs settings
2
+ (
3
+ ; ; In C++ code indentation is 2 spaces
4
+ (c++-mode
5
+ (indent-tabs-mode . nil )
6
+ (c-basic-offset . 2 )))
Original file line number Diff line number Diff line change
1
+ [* .{cpp,hpp} ]
2
+ indent_size = 2
You can’t perform that action at this time.
0 commit comments