-
Notifications
You must be signed in to change notification settings - Fork 13
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
The pyenv keybinds conflict with magit/org #35
Comments
You can bind it to something else with (setq pyenv-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-c C-m") 'pyenv-mode-set)
(define-key map (kbd "C-c C-u") 'pyenv-mode-unset)
map)) |
My issue is with pyenv-mode overriding keybinds for other major modes, when it is set as a hook for python-mode only. |
It is actually a global minor mode, which is why you are seeing the conflict. |
It would be great to make it only enable with python-mode and not global. It is also conflicting with |
It looks like #31 was submitted to do exactly that. |
For anyone still annoyed by the overriding of keys, a workaround I've found is to delete the keymap of (use-package pyenv-mode
:init
(setq pyenv-mode-map
(let ((map (make-sparse-keymap)))
map))
:hook python-ts-mode python-mode
:bind
(:map python-ts-mode-map
("C-c C-s" . pyenv-mode-set)
("C-c C-u" . pyenv-mode-unset))) |
I don't use |
The key binding for
C-c C-s
is bound togit-commit-signoff
when editing a commit message in magit, however, if we're working in a python project, the same gets overwritten by pyenv mode.The text was updated successfully, but these errors were encountered: