From 0328c4b41692df3152b88a04584ae4084afc79c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 22 Dec 2025 00:31:06 +0800 Subject: [PATCH] feat(emacs): Set tab-width for yaml files to 2 --- home-config/dotfiles/emacs.d/config/programming-languages.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home-config/dotfiles/emacs.d/config/programming-languages.el b/home-config/dotfiles/emacs.d/config/programming-languages.el index ecfc5119..3b3f1e6e 100644 --- a/home-config/dotfiles/emacs.d/config/programming-languages.el +++ b/home-config/dotfiles/emacs.d/config/programming-languages.el @@ -130,7 +130,8 @@ (leaf yaml-ts-mode :require eglot :mode `(,(rx (or ".yaml" ".yml" ".bst" "project.conf") string-end)) - :hook (yaml-ts-mode-hook . eglot-ensure)) + :hook (yaml-ts-mode-hook . eglot-ensure) + :hook (yaml-ts-mode-hook . (lambda () (setq-local tab-width 2)))) ;; ---------------------------------------------------------------------------------- ;;; KDL