Conversation
evil-leader.el
Outdated
| (minor-modes (mapcar 'car minor-mode-alist)) | ||
| (active-modes (cons major-mode minor-modes)) | ||
| (get-keymap-for-mode (lambda (mode) (cdr (assoc mode evil-leader--mode-maps)))) | ||
| (mode-map (apply 'append (mapcar 'get-keymap-for-mode active-modes))) |
There was a problem hiding this comment.
I think it should be unquoted get-keymap-for-mode here. Lambdas are self-quoting and the quoted version does not work on my Emacs (25 prerelease)
|
Thanks for writing this, much needed! @cofi, any chance of including this? I am starting using it right now and will report back issues if any. |
|
One problem is that there's no guarantee evil-leader is the last loaded minor mode. So I think a cleaner way to do this would involve adding local leader keys in minor modes' hooks.
|
|
@lionel- I unquoted |
|
See #35 ;) |
|
Oh nice! Didn't see that. |
This allows you to use
evil-leader/set-key-for-modeto set minor-mode specific maps. I think this also addresses #27.