aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files/emacs-init.el')
-rw-r--r--tw/home/files/emacs-init.el6
1 files changed, 4 insertions, 2 deletions
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)