Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keymaps not activating keymap during major-mode treemacs #508

Open
LazerJesus opened this issue Nov 4, 2022 · 2 comments
Open

keymaps not activating keymap during major-mode treemacs #508

LazerJesus opened this issue Nov 4, 2022 · 2 comments

Comments

@LazerJesus
Copy link

LazerJesus commented Nov 4, 2022

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
Copy link
Author

LazerJesus commented Nov 4, 2022

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

@noctuid
Copy link
Owner

noctuid commented Nov 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants