noctuid / general.el

More convenient key definitions in emacs
GNU General Public License v3.0
986 stars 43 forks source link

keymaps not activating keymap during major-mode treemacs #508

Open LazerJesus opened 1 year ago

LazerJesus commented 1 year ago

My keymap gets ignored when in major mode treemacs-mode

eval major-mode returns treemacs-mode

(use-package general
  :config (general-create-definer space-key-map
    :keymaps '(normal visual emacs treemacs treemacs-mode)
    :prefix "SPC"
    :global-prefix "SPC"))

I am doing something wrong I am sure. I would like to keep my window navigation (windmove-u/d/l/r)

LazerJesus commented 1 year ago

is there a way to use this keymap with every mode except in edit mode?

noctuid commented 1 year ago

Unless you've created an alias, you should use the full name of the keymap, which I assume will be be something like treemacs-mode-map.

is there a way to use this keymap with every mode except in edit mode?

Could you elaborate on this? If you give a more detailed example of the keybindings you want, it may be easier for me to help.