From ed4986fc5541d7c625f87c5d695fda069cc08bca Mon Sep 17 00:00:00 2001 From: condy Date: Fri, 14 Jan 2022 14:15:51 +0800 Subject: [PATCH] mpc: define evil-collection-mpc-setup --- modes/mpc/evil-collection-mpc.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modes/mpc/evil-collection-mpc.el b/modes/mpc/evil-collection-mpc.el index e594785..ec5fdcf 100644 --- a/modes/mpc/evil-collection-mpc.el +++ b/modes/mpc/evil-collection-mpc.el @@ -29,18 +29,20 @@ (require 'mpc) (require 'evil-collection) +(defconst evil-collection-mpc-mode-maps '(mpc-mode-map)) + (defun evil-collection-move-mpc-down () "Move the cursor down along with selecting the element." (evil-next-visual-line) (mpc-select)) + (defun evil-collection-move-mpc-up () "Move the cursor up along with selecting the element." (evil-previous-visual-line) (mpc-select)) -(defconst evil-collection-mpc-mode-maps '(mpc-mode-map)) ;;;###autoload -(defun evil-collection-mpc-mode-setup () +(defun evil-collection-mpc-setup () "Setup up 'evil' bindings for 'mpc-mode'." (evil-collection-define-key 'normal 'mpc-mode-map "C-j" 'evil-collection-move-mpc-down