我有一个要在所有模式下使用的键绑定列表。但是,在下面的简化示例中,出现错误Error (use-package): general/:config: Key sequence SPC x starts with non-prefix key SPC
。
(use-package paradox
:ensure t
:defer t
:config
(setq paradox-spinner-type 'progress-bar)
paradox-execute-asynchronously t))
(defun add-general-bindings ()
(general-define-key
:states '(normal visual insert emacs motion)
:prefix "SPC"
:non-normal-prefix "C-SPC"
"x" 'counsel-M-x
"SPC" 'avy-goto-char-2
"/" 'swiper))
(add-hook 'paradox-menu-mode-hook 'add-general-bindings)
我虽然可能是因为我没有为悖论菜单模式取消绑定SPC
,但是如果添加了
(general-unbind
:states '(normal visual emacs motion)
"SPC")
在add-general-bindings
顶部,错误仍然存在。用通用包覆盖主模式的键绑定是错误的方法吗?