Emacs: Set sh-mode indent offset to tab-width
parent
9053985f71
commit
cac70e8260
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue