[oni-yaml] Autoload the major mode remapping
This commit is contained in:
parent
f4b587f550
commit
75128ffcdf
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; 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)
|
;; 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
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -51,9 +51,10 @@
|
||||||
|
|
||||||
(oni-yaml--enable-hooks 'yaml-mode-hook)
|
(oni-yaml--enable-hooks 'yaml-mode-hook)
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(when (and (functionp 'treesit-available-p)
|
(when (and (functionp 'treesit-available-p)
|
||||||
(treesit-available-p)
|
(treesit-available-p)
|
||||||
(treesit-ready-p 'yaml))
|
(treesit-ready-p 'yaml))
|
||||||
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
|
||||||
(oni-yaml--enable-hooks 'yaml-ts-mode-hook))
|
(oni-yaml--enable-hooks 'yaml-ts-mode-hook))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue