aboutsummaryrefslogtreecommitdiff
path: root/dot.emacs.d
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:26:21 +0100
committerThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:26:21 +0100
commitee0ec70a72cac2a16d2583da7cea28357cdfa14b (patch)
treeede0f773ab6befcec48082ca58f3397442cb1038 /dot.emacs.d
parent5ae59d243dd144ce80873d6abcba3022b46def49 (diff)
Emacs: yaml-mode: Configure hl-indent offset; disable tabs
Diffstat (limited to 'dot.emacs.d')
-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)