summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/emacs/config.org9
1 files changed, 7 insertions, 2 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
index cd499a7..5feb39c 100644
--- a/.config/emacs/config.org
+++ b/.config/emacs/config.org
@@ -663,7 +663,8 @@ already installed unfortunately, but it’s easy enough to do manually.
(make "https://github.com/alemuller/tree-sitter-make")
(markdown "https://github.com/ikatyang/tree-sitter-markdown")
(python "https://github.com/tree-sitter/tree-sitter-python")
- (toml "https://github.com/tree-sitter/tree-sitter-toml")))
+ (toml "https://github.com/tree-sitter/tree-sitter-toml")
+ (yaml "https://github.com/ikatyang/tree-sitter-yaml")))
;; Automatically install missing grammars
(thread-last
@@ -1026,7 +1027,11 @@ file with a certain file extension.
#+BEGIN_SRC elisp
(require 'rust-ts-mode)
- (add-to-list 'auto-mode-alist '("\\.rsl\\'" . rust-ts-mode))
+ (require 'yaml-ts-mode)
+
+ (mm-for-each `((,(rx ".rs" eos) . rust-ts-mode)
+ (,(rx (or ".yml" ".yaml")) . yaml-ts-mode))
+ (add-to-list 'auto-mode-alist x))
#+END_SRC