indent-guide ability added
This commit is contained in:
parent
8c3cf5db44
commit
8427993a5a
|
@ -28,10 +28,23 @@
|
|||
;; Basic Key bindings
|
||||
(global-set-key (kbd "\C-c m") 'menu-bar-mode)
|
||||
|
||||
;; Indentation ----------------------------------------------
|
||||
;; Don't allow tab as indent
|
||||
(setq-default indent-tabs-mode nil)
|
||||
|
||||
(ability indent-guides ()
|
||||
"Show guides for indentations in code."
|
||||
|
||||
(indent-guide-global-mode)
|
||||
|
||||
(ability recursive-indent-guides ()
|
||||
"Show recursive indents guides."
|
||||
(setq indent-guide-recursive t))
|
||||
|
||||
(ability delayed-indent-guides ()
|
||||
"Show indent guides with a delay."
|
||||
(setq indent-guide-delay 0.3)))
|
||||
|
||||
|
||||
;; Default indent width
|
||||
(setq tab-width 2)
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
|
|
Loading…
Reference in New Issue