hrs/engine-mode

Error in use-package keymap-set void definition

averter opened this issue · 2 comments

Hello,

After removing and installing emacs again I am getting this error
Error (use-package): engine-mode/:config: Symbol’s function definition is void: keymap-set
My engine-mode config is

(use-package engine-mode
  :ensure t
  :config
  (engine-mode t)
  (defengine duckduckgo
    "https://duckduckgo.com/?q=%s"
    :keybinding "d"))

and I am on linux mint cinnamon emacs 27.1. Thank you in advance for any help.

hrs commented

Whoops, sorry about that, @averter! I replaced a use of define-key with the newer keymap-set to resolve #56, but hadn't realized how recently it was introduced. I've added a check to use define-key instead if keymap-set is unbound.

I've just pushed a commit to fix this (I hope!). Try installing again and let me know if it doesn't work?

Brilliant. It works perfectly! Thank you very much