Emacs: Move sh-basic-offset and c-basic-offset to their respective config file

master
Pierre Neidhardt 2017-06-23 14:44:16 +01:00
parent 2ac066840b
commit 64a294f86c
3 changed files with 3 additions and 5 deletions

View File

@ -10,6 +10,8 @@
"M-TAB" 'semantic-complete-analyze-inline))
;; (define-key map (kbd "C-c o") 'ff-find-other-file)
(defvaralias 'c-basic-offset 'tab-width)
;;; C additional faces.
;;; Useless in quasi-monochrome.
;; (dolist (mode '(c-mode c++-mode))

View File

@ -1,5 +1,6 @@
;;; Sh
(defvaralias 'sh-basic-offset 'tab-width)
(defvaralias 'sh-indentation 'sh-basic-offset)
(setq sh-indent-comment t)

View File

@ -92,11 +92,6 @@
(defvaralias 'standard-indent 'tab-width)
(setq-default indent-tabs-mode t)
;;; 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)