Emacs: Set sh-mode indent offset to tab-width

master
Pierre Neidhardt 2014-10-30 18:18:08 +01:00
parent 9053985f71
commit cac70e8260
2 changed files with 7 additions and 1 deletions

View File

@ -92,7 +92,11 @@
(setq-default tab-width 2)
(defvaralias 'standard-indent 'tab-width)
(setq-default indent-tabs-mode t)
(defvaralias 'c-basic-offset 'tab-width) ;; This needs to be set globally.
;; 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)
(defvaralias 'sh-basic-offset 'tab-width)
;; Line by line scrolling
(setq scroll-step 1)

View File

@ -2,6 +2,8 @@
;; Shell
;;==============================================================================
(defvaralias 'sh-indentation 'sh-basic-offset)
(setq sh-indent-comment t)
(set (make-local-variable 'sh-shell-file) "/bin/sh") ; Useful for the first time this hook is loaded.
(setq-default sh-shell-file sh-shell-file)