diff options
author | 2024-07-01 15:07:04 -0700 | |
---|---|---|
committer | 2024-07-01 15:07:04 -0700 | |
commit | 75128ffcdfd55373d42b7152a06734c33530e6a4 (patch) | |
tree | 4fb3f7c2f5ed2d20685ad04ccad4197f54282718 | |
parent | f4b587f5500765996a1153b7eaf87d13b46c1ca1 (diff) | |
download | emacs-config-75128ffcdfd55373d42b7152a06734c33530e6a4.tar.gz emacs-config-75128ffcdfd55373d42b7152a06734c33530e6a4.zip |
[oni-yaml] Autoload the major mode remapping
-rw-r--r-- | oni-yaml.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/oni-yaml.el b/oni-yaml.el index d05a402..27a4cf6 100644 --- a/oni-yaml.el +++ b/oni-yaml.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2024.0205.164705 +;; Version: 2024.0621.092620 ;; Package-Requires: (yaml-mode oni-flycheck oni-highlight-indent-guides indent-tools yaml-imenu yaml-pro) ;; This program is free software; you can redistribute it and/or modify @@ -51,9 +51,10 @@ (oni-yaml--enable-hooks 'yaml-mode-hook) +;;;###autoload (when (and (functionp 'treesit-available-p) - (treesit-available-p) - (treesit-ready-p 'yaml)) + (treesit-available-p) + (treesit-ready-p 'yaml)) (add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode)) (oni-yaml--enable-hooks 'yaml-ts-mode-hook)) |