Commit 1c770b2192c9

Vincent Demeester <vincent@sbr.pm>
2019-07-04 14:29:34
setup-files: add highlight indentation mode to yaml-mode
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 81a549b
Changed files (1)
lisp/setup-files.el
@@ -50,8 +50,15 @@
                      " ")))
   (add-hook 'markdown-mode-hook #'auto-fill-mode))
 
+(use-package highlight-indentation
+  :config
+  (set-face-background 'highlight-indentation-face "#e3e3d3")
+  (set-face-background 'highlight-indentation-current-column-face "#c3b3b3"))
+
 (use-package yaml-mode
-  :mode "\\.ya?ml\\'")
+  :mode "\\.ya?ml\\'"
+  :hook ((yaml-mode . highlight-indentation-mode)
+         (yaml-mode . highlight-indentation-current-column-mode)))
 
 (use-package toml-mode
   :mode "\\.to?ml\\'")