branch: elpa/evil-collection
commit 03e1c04b398bc8948a21fac5f3baa4f70da1a350
Author: paniash <[email protected]>
Commit: James <[email protected]>

    fix emms-browser not starting in evil-mode by default
---
 modes/emms/evil-collection-emms.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modes/emms/evil-collection-emms.el 
b/modes/emms/evil-collection-emms.el
index cdf82aaf49..c7d6934614 100644
--- a/modes/emms/evil-collection-emms.el
+++ b/modes/emms/evil-collection-emms.el
@@ -76,10 +76,8 @@ The return value is the yanked text."
 ;;;###autoload
 (defun evil-collection-emms-browser-setup ()
   "Set up `evil' bindings for `emms-browser'."
-  ;; TODO: Why doesn't evil-set-initial-state work with emms-browser-mode?
-
+  (evil-set-initial-state 'emms-browser-mode 'normal)
   (evil-collection-inhibit-insert-state 'emms-browser-mode-map)
-  (add-hook 'emms-browser-mode-hook #'evil-normal-state)
   (evil-collection-define-key 'normal 'emms-browser-mode-map
     ;; The following overrides other "g-" and "s-" prefixed keys so we set it 
first.
     "g" nil

Reply via email to