1

I want to bind the verb package's keymap within org-mode. Currently, I am using the with-eval-after-load function in the :init option.

(use-package org-plus-contrib
  :ensure t
  :init
  (require 'org-tempo)
  (with-eval-after-load 'org
    (define-key org-mode-map (kbd "C-c C-r") verb-command-map))
)

It seems there's a :bind-keymap option for this. But I just cannot get it to work. After I defined the :bind-keymap option, it does not seem to have any effect.

1 Answer 1

0

You can use the :map keyword within the :bind section. like this:

(use-package org-plus-contrib
  :ensure t
  :init
  (require 'org-tempo)
  :bind (:map org-mode-map ("C-c C-r" . verb-command-map))
)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.