diff --git a/emacs/.emacs.d/config/init-yaml.el b/emacs/.emacs.d/config/init-yaml.el index a7d8ebf..981f459 100644 --- a/emacs/.emacs.d/config/init-yaml.el +++ b/emacs/.emacs.d/config/init-yaml.el @@ -8,6 +8,14 @@ (use-package yaml-pro :when (treesit-ready-p 'yaml) - :hook (yaml-ts-mode . yaml-pro-ts-mode)) + :hook (yaml-ts-mode . yaml-pro-ts-mode) + :general + (yaml-pro-ts-mode-map [remap evil-backward-section-begin] #'yaml-pro-ts-prev-subtree + [remap evil-forward-section-begin] #'yaml-pro-ts-next-subtree + [remap evil-shift-right] #'yaml-pro-ts-indent-subtree + [remap evil-shift-left] #'yaml-pro-ts-unindent-subtree + "C-c j" #'yaml-pro-ts-move-subtree-down + "C-c k" #'yaml-pro-ts-move-subtree-up + "C-c f" #'yaml-pro-format)) (provide 'init-yaml)