indent-guide ability added

This commit is contained in:
Sameer Rahmani 2015-07-11 16:36:02 +04:30
parent 8c3cf5db44
commit 8427993a5a
1 changed files with 14 additions and 1 deletions

View File

@ -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)