mpc: define evil-collection-mpc-setup
This commit is contained in:
parent
289cde2f96
commit
ed4986fc55
|
@ -29,18 +29,20 @@
|
||||||
(require 'mpc)
|
(require 'mpc)
|
||||||
(require 'evil-collection)
|
(require 'evil-collection)
|
||||||
|
|
||||||
|
(defconst evil-collection-mpc-mode-maps '(mpc-mode-map))
|
||||||
|
|
||||||
(defun evil-collection-move-mpc-down ()
|
(defun evil-collection-move-mpc-down ()
|
||||||
"Move the cursor down along with selecting the element."
|
"Move the cursor down along with selecting the element."
|
||||||
(evil-next-visual-line)
|
(evil-next-visual-line)
|
||||||
(mpc-select))
|
(mpc-select))
|
||||||
|
|
||||||
(defun evil-collection-move-mpc-up ()
|
(defun evil-collection-move-mpc-up ()
|
||||||
"Move the cursor up along with selecting the element."
|
"Move the cursor up along with selecting the element."
|
||||||
(evil-previous-visual-line)
|
(evil-previous-visual-line)
|
||||||
(mpc-select))
|
(mpc-select))
|
||||||
(defconst evil-collection-mpc-mode-maps '(mpc-mode-map))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun evil-collection-mpc-mode-setup ()
|
(defun evil-collection-mpc-setup ()
|
||||||
"Setup up 'evil' bindings for 'mpc-mode'."
|
"Setup up 'evil' bindings for 'mpc-mode'."
|
||||||
(evil-collection-define-key 'normal 'mpc-mode-map
|
(evil-collection-define-key 'normal 'mpc-mode-map
|
||||||
"C-j" 'evil-collection-move-mpc-down
|
"C-j" 'evil-collection-move-mpc-down
|
||||||
|
|
Loading…
Reference in New Issue