diff --git a/custom.el b/custom.el index 9777930..d7c9288 100644 --- a/custom.el +++ b/custom.el @@ -11,7 +11,7 @@ '(anzu-search-threshold 1000) '(package-selected-packages (quote - (yaml-mode editorconfig whitespace-cleanup-mode rainbow-mode scss-mode sass-mode less-css-mode ac-php smarty-mode php-mode pkgbuild-mode markdown-mode flycheck anzu sml-modeline smart-mode-line-powerline-theme smart-mode-line nlinum sublime-themes)))) + (highlight-indent-guides yaml-mode whitespace-cleanup-mode sublime-themes sml-modeline smarty-mode smart-mode-line-powerline-theme scss-mode sass-mode rainbow-mode prettier-js pkgbuild-mode pcre2el nlinum markdown-mode less-css-mode flycheck editorconfig anzu ac-php)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/init.el b/init.el index ca5e9f0..ccba40e 100644 --- a/init.el +++ b/init.el @@ -34,6 +34,7 @@ (require 'init-gui) (require 'init-editing-utils) (require 'init-modeline) +(require 'init-indent-guides) ;; Tools (require 'init-flycheck) (require 'init-whitespace) diff --git a/lisp/init-indent-guides.el b/lisp/init-indent-guides.el new file mode 100644 index 0000000..f2be7ce --- /dev/null +++ b/lisp/init-indent-guides.el @@ -0,0 +1,8 @@ +;; This minor mode highlights indentation levels via font-lock +(require-package 'highlight-indent-guides) + +(setq highlight-indent-guides-method 'character) + +(add-hook 'prog-mode-hook 'highlight-indent-guides-mode) + +(provide 'init-indent-guides)