set tab-width to 4
This commit is contained in:
parent
234942f10d
commit
f6d3734a66
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
|||
;; resize cursor to character
|
||||
(setq x-stretch-cursor t)
|
||||
|
||||
;; set tab width to 4 whitespaces
|
||||
(setq tab-width 4)
|
||||
(defvaralias 'c-basic-offset 'tab-width)
|
||||
(defvaralias 'cperl-indent-level 'tab-width)
|
||||
|
||||
;; delete trailing whitespaces before saving
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
|
||||
|
|
Loading…
Reference in a new issue