Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion evil-collection.el
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ See `evil-collection-init' and `evil-collection--modes-with-delayed-setup'."
woman
xref
xwidget
yaml-mode
(yaml-mode ,@(when (>= emacs-major-version 29) '(yaml-ts-mode)))
youtube-dl
zmusic
(ztree ztree-diff ztree-dir))
Expand Down
4 changes: 3 additions & 1 deletion modes/yaml-mode/evil-collection-yaml-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
;;; Code:
(require 'evil-collection)
(require 'yaml-mode nil t)
(require 'yaml-ts-mode nil t)

(defconst evil-collection-yaml-mode-maps nil)

Expand All @@ -36,7 +37,8 @@
;;;###autoload
(defun evil-collection-yaml-mode-setup ()
"Set up `evil' bindings for `yaml'."
(add-hook 'yaml-mode-hook #'evil-collection-yaml-mode-set-evil-shift-width))
(dolist (hook '(yaml-mode-hook yaml-ts-mode-hook))
(add-hook hook #'evil-collection-yaml-mode-set-evil-shift-width)))

(provide 'evil-collection-yaml-mode)
;;; evil-collection-yaml-mode.el ends here
Loading