Emacs: Indent Lisp with spaces

master
Pierre Neidhardt 2014-10-30 20:51:42 +01:00
parent cac70e8260
commit bed82d0352
1 changed files with 9 additions and 0 deletions

View File

@ -93,6 +93,15 @@
(defvaralias 'standard-indent 'tab-width)
(setq-default indent-tabs-mode t)
;; Lisp should not use tabs.
(mapcar
(lambda (hook)
(add-hook
hook
(lambda ()
(setq indent-tabs-mode nil))))
'(lisp-mode-hook emacs-lisp-mode-hook))
;; This needs to be set globally since they are defined as local variable and
;; Emacs does not know how to set an alias on a local variable.
(defvaralias 'c-basic-offset 'tab-width)