aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dot.emacs.d/init.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el
index b3242e2..c104d79 100644
--- a/dot.emacs.d/init.el
+++ b/dot.emacs.d/init.el
@@ -199,8 +199,12 @@
(use-package yaml-mode
:config
(add-hook 'yaml-mode-hook
- (defun qsx-hl-indent-mode-hook ()
- (highlight-indentation-mode))))
+ (defun qsx-yaml-hl-indent-mode-hook ()
+ (highlight-indentation-mode)
+ (highlight-indentation-set-offset yaml-indent-offset)))
+ (add-hook 'yaml-mode-hook
+ (defun qsx-no-indent-tabs-mode ()
+ (setq indent-tabs-mode nil))))
(use-package dockerfile-mode)