aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-09-23 16:34:15 -0500
committerJesús <heckyel@hyperbola.info>2018-09-23 16:34:15 -0500
commitcc7ea1dcc94cc43e99275b37a711f8fbf21ccfe4 (patch)
tree801b99a2e629048a04b0d14f3311484c443ca02e
parent3ba8cf3d8723969a44ca29162a06432d137c19ff (diff)
downloademacs-base-cc7ea1dcc94cc43e99275b37a711f8fbf21ccfe4.tar.lz
emacs-base-cc7ea1dcc94cc43e99275b37a711f8fbf21ccfe4.tar.xz
emacs-base-cc7ea1dcc94cc43e99275b37a711f8fbf21ccfe4.zip
provide highlight-indent-guide
-rw-r--r--custom.el3
-rw-r--r--init.el1
-rw-r--r--lisp/init-indent-guides.el8
3 files changed, 10 insertions, 2 deletions
diff --git a/custom.el b/custom.el
index 69fbb04..86a43d2 100644
--- a/custom.el
+++ b/custom.el
@@ -1,4 +1,3 @@
-
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@@ -11,7 +10,7 @@
'(anzu-search-threshold 1000)
'(package-selected-packages
(quote
- (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))))
+ (rainbow-mode scss-mode sass-mode less-css-mode ac-php smarty-mode php-mode pkgbuild-mode markdown-mode flycheck highlight-indent-guides anzu sml-modeline smart-mode-line-powerline-theme smart-mode-line nlinum sublime-themes))))
(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 d7e6c91..4b820c1 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)
;; Languages
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)