Skip to content

Commit 9012f39

Browse files
committed
fix: set vimrc and emacs indention according to .editorconfig
1 parent 1f621ab commit 9012f39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.dir-locals.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
(sh-indentation . 4)))
2222
(awk-mode . ((c-basic-offset . 8)))
2323
(nil . ((indent-tabs-mode . nil)
24-
(tab-width . 8)
24+
(tab-width . 4)
2525
(fill-column . 79))) )

.vimrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
" Vim can use per directory configuration files like this.
1+
" Vim can use per directory configuration files like this.
22
" To enable that feature two lines are needed in your ~/.vimrc
33
" set exrc " enables per-directory .vimrc files
44
" set secure " disable unsafe commands in local .vimrc files
55
" Characters width is set to 109 for .c and XML but for everything else 79.
6-
" If you update this file make sure to update .dir-locals.el & .editorconfig
6+
" If you update this file make sure to update .dir-locals.el & .editorconfig
77

8-
set tabstop=8
9-
set shiftwidth=8
8+
set tabstop=4
9+
set shiftwidth=4
1010
set expandtab
1111
set makeprg=GCC_COLORS=\ make
1212
set tw=79
1313
au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab
1414
au FileType sh set tw=80 shiftwidth=4 smarttab
15-
au FileType c set tw=109
15+
au FileType c set tw=109 shiftwidth=8 tabstop=8 smarttab expandtab

0 commit comments

Comments
 (0)