use-package icon indicating copy to clipboard operation
use-package copied to clipboard

projectile key options are not shown in the first try

Open mambolevis opened this issue 6 years ago • 2 comments

Hi,

I am using the following configuration in projectile:

(use-package projectile
  :ensure t
  :init
  (setq projectile-completion-system 'ivy)
  :bind-keymap
  ("C-c C-p" . projectile-command-map)
  :config
  (projectile-mode 1))

When I press C-c C-p projectile is activated but the key options are not shown. If I then press C-c C-p the minibuffer shows projectile key options as expected.

Any suggestion? Thanks

mambolevis avatar Jun 02 '18 12:06 mambolevis

Seems related to https://github.com/jwiegley/use-package/issues/685. Perhaps the :bind (:prefix-map ...) will accomplish what you are looking for?

waymondo avatar Jul 03 '18 03:07 waymondo

I have ran into the same issue. This gives the issue stated above:

(use-package projectile
:bind (:map leader-map
            ("p" . projectile-command-map)))

And this code:

(use-package projectile
:bind-keymap (:map leader-map
                    ("p" . projectile-command-map)))

Gives this error:

Error (use-package): Failed to parse package projectile: Wrong type argument: listp, :map

Vurp avatar Aug 30 '18 21:08 Vurp