Closed goofansu closed 1 year ago
Seems the same as https://github.com/noctuid/general.el/issues/186, closing.
For anyone encounters the problem, the solution is to add :major-modes t
, for example:
(use-package general
:config
(general-define-key
:prefix "C-c m"
:keymaps 'org-mode-map
:major-modes t
"t" '(:ignore t :wk "tasks")
"tt" #'org-todo
)
(general-define-key
:prefix "C-c m"
:keymaps 'emacs-lisp-mode-map
:major-modes t
"t" '(:ignore t :wk "eval")
"tt" #'eval-defun
))
Minimal config:
Demo
https://github.com/justbur/emacs-which-key/assets/1143191/e376eded-3117-484d-a30e-90f1d4cd7ff9
Reproduce
With the Minimal config below:
C-c m t
shows+eval
;C-c m t
shows+tasks
;C-c m t
shows+tasks
too, which is unexpected.But I don't confirm whether it is a bug in which-key or general.el.