Emacs: Move sh-basic-offset and c-basic-offset to their respective config file
parent
2ac066840b
commit
64a294f86c
|
@ -10,6 +10,8 @@
|
||||||
"M-TAB" 'semantic-complete-analyze-inline))
|
"M-TAB" 'semantic-complete-analyze-inline))
|
||||||
;; (define-key map (kbd "C-c o") 'ff-find-other-file)
|
;; (define-key map (kbd "C-c o") 'ff-find-other-file)
|
||||||
|
|
||||||
|
(defvaralias 'c-basic-offset 'tab-width)
|
||||||
|
|
||||||
;;; C additional faces.
|
;;; C additional faces.
|
||||||
;;; Useless in quasi-monochrome.
|
;;; Useless in quasi-monochrome.
|
||||||
;; (dolist (mode '(c-mode c++-mode))
|
;; (dolist (mode '(c-mode c++-mode))
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;;; Sh
|
;;; Sh
|
||||||
|
|
||||||
|
(defvaralias 'sh-basic-offset 'tab-width)
|
||||||
(defvaralias 'sh-indentation 'sh-basic-offset)
|
(defvaralias 'sh-indentation 'sh-basic-offset)
|
||||||
|
|
||||||
(setq sh-indent-comment t)
|
(setq sh-indent-comment t)
|
||||||
|
|
|
@ -92,11 +92,6 @@
|
||||||
(defvaralias 'standard-indent 'tab-width)
|
(defvaralias 'standard-indent 'tab-width)
|
||||||
(setq-default indent-tabs-mode t)
|
(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
|
;;; Line by line scrolling
|
||||||
(setq scroll-step 1)
|
(setq scroll-step 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue