Emacs: Indent Lisp with spaces
parent
cac70e8260
commit
bed82d0352
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue