From 60378c010d7366ccced5b7da39206910f5043896 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 9 Mar 2023 16:30:35 +0100 Subject: YAML-mode improvements --- tw/home/files/emacs-init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tw/home/files/emacs-init.el') diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index 93f6c448..64a29a04 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -164,7 +164,7 @@ ;; Included in Emacs >= 26. Better than `linum-mode'. ;; There is also `global-display-line-numbers-mode', but that also ;; enables line numbers in help windows, which I don't want. - :hook (prog-mode conf-mode alidist-mode)) + :hook (prog-mode conf-mode yaml-mode alidist-mode)) (use-package which-key :commands (which-key-mode) :demand t @@ -302,7 +302,9 @@ :mode (rx "." (or "htm" "html" "js" "css" "scss") eos)) (use-package yaml-mode - :mode (rx ".y" (? "a") "ml" eos)) + :mode (rx (or (seq ".y" (? "a") "ml") + (seq "aliPublish" (* (not ?/)) ".conf")) + eos)) (use-package ledger-mode :mode (rx ".journal" eos) -- cgit v1.2.3