aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-09-23 16:39:42 -0500
committerJesús <heckyel@hyperbola.info>2018-09-23 16:39:42 -0500
commit2c09a29f718d630e9901d740f0cc22b015f966f4 (patch)
tree12e7a1823adc652d77b93e1b3ec2c0944b15d89d
parentf12552e09059da03f783813b4a753606a15dc182 (diff)
downloademacs-personal-2c09a29f718d630e9901d740f0cc22b015f966f4.tar.lz
emacs-personal-2c09a29f718d630e9901d740f0cc22b015f966f4.tar.xz
emacs-personal-2c09a29f718d630e9901d740f0cc22b015f966f4.zip
provide highlight-indent-guide
-rw-r--r--custom.el2
-rw-r--r--init.el1
-rw-r--r--lisp/init-indent-guides.el8
3 files changed, 10 insertions, 1 deletions
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)