currently using :bind is not nice to use for evil bindings.
It would be nice to have keywords such as :bind-evil-normal, :bind-evil-visual, bind-evil-leader, to nicly support lazy loading and keybindings with evil.
I know this is not a solution to your question, but I use general to all my bindings, and it provides a :general keyword to use-package where I can define my keybindings to all modes.
For instance:
(use-package counsel
:general
("M-x" 'counsel-M-x)
(:states '(normal visual)
:prefix my/leader-key
"fr" 'counsel-recentf))
@Townk Which version of use-package starts to support general? I tried with use-package version 20180314.1143 which is installed automatically by spacemacs (0.200.13), and it does not work:
Error (use-package): Failed to parse package org: use-package: Unrecognized keyword: :general
My use-package is something like this:
```elisp
(use-package org
:demand 5
:init
(spacemacs/declare-prefix "o" "org")
:general
("ob" . org-iswitchb)
("oc" . org-clock-goto)
("ok" . org-capture)
("ol" . org-store-link)
("oL" . org-insert-link)
("os" . org-search-view)
(:keymaps org-mode-map
("C-c C-." . org-time-stamp-inactive)
("M-p" . org-metaup)
("M-n" . org-metadown)
("C-c c" . org-columns))
(:keymaps org-mode-map
:state normal
("RET" . org-return))
```
@biocyberman you need to install the general.el package as well, which provides the :general keyword. All use-package supports is custom keywords (which may be provided by another package, the user, etc.)
Got it. Thanks @dieggsy
Most helpful comment
I know this is not a solution to your question, but I use general to all my bindings, and it provides a
:generalkeyword touse-packagewhere I can define my keybindings to all modes.For instance: