set tab-width to 4

This commit is contained in:
finga 2018-09-20 12:51:57 +02:00
parent 234942f10d
commit f6d3734a66

View file

@ -20,6 +20,11 @@
;; resize cursor to character ;; resize cursor to character
(setq x-stretch-cursor t) (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 ;; delete trailing whitespaces before saving
(add-hook 'before-save-hook 'delete-trailing-whitespace) (add-hook 'before-save-hook 'delete-trailing-whitespace)