diff options
| author | Pierre Neidhardt <ambrevar@gmail.com> | 2018-02-22 16:27:51 +0100 |
|---|---|---|
| committer | Pierre Neidhardt <ambrevar@gmail.com> | 2018-02-22 18:25:35 +0100 |
| commit | b90872547f875160113518ee600a83a0fc583ff5 (patch) | |
| tree | f379fdf488caf23114104ad30b6c4902b4229021 | |
| parent | d4e6e1f99a36c90d3a94e79d89675519e15ed886 (diff) | |
Emms: Add bindings for browser-search-mode and metaplaylist-mode
| -rw-r--r-- | evil-collection-emms.el | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/evil-collection-emms.el b/evil-collection-emms.el index a2866bc..a275675 100644 --- a/evil-collection-emms.el +++ b/evil-collection-emms.el @@ -36,15 +36,6 @@ (defvar emms-browser-mode-map) (defvar emms-playlist-mode-map) -;;; TODO: Make all playback bindings consistent across modes: -;;; - stop -;;; - pause -;;; - volume -;;; - next/previous -;;; - fast-forward/backward - -;;; TODO: Add bindings to emms-browser-search-mode-map and emms-metaplaylist-mode-map. - (defun evil-collection-emms-playlist-mode-insert-newline-above () "Insert a newline above point." (interactive) @@ -191,7 +182,20 @@ The return value is the yanked text." (evil-define-key 'visual emms-playlist-mode-map ;; "d" 'emms-playlist-mode-kill - "D" 'emms-playlist-mode-kill)) + "D" 'emms-playlist-mode-kill) + + (evil-define-key 'normal emms-browser-search-mode-map + "q" 'emms-browser-kill-search) + + (evil-set-initial-state 'emms-metaplaylist-mode-map 'normal) + (evil-define-key 'normal emms-metaplaylist-mode-map + (kbd "<return>") 'emms-metaplaylist-mode-goto-current + (kbd "<space>") 'emms-metaplaylist-mode-set-active + "gr" 'emms-metaplaylist-mode-update + "C" 'emms-metaplaylist-mode-new-buffer + "." 'emms-metaplaylist-mode-center-current + "D" 'emms-metaplaylist-mode-kill-buffer + "q" 'kill-this-buffer)) (provide 'evil-collection-emms) ;;; evil-collection-emms.el ends here |
