You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key binding for C-c C-s is bound to git-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.
It would be great to make it only enable with python-mode and not global. It is also conflicting with org-schedule (C-c C-s) - and when I'm inside org, I'm not at all working on any python project - no need of pyenv, but projectile is on. So can we use it as python-mode hook too?
Reacted by -, nicodebo, Magne Hov, Rob Capellini and PetreM
For anyone still annoyed by the overriding of keys, a workaround I've found is to delete the keymap of pyenv-mode-map and rebind the commands in the python-mode-map. One obvious downside to this is having the keys mapped permanently, whether in pyenv-mode or not, but since I use it pretty much all the time it works for me.
Activity
CeleritasCelery commentedon Dec 30, 2020
You can bind it to something else with
hjpotter92 commentedon Dec 31, 2020
My issue is with pyenv-mode overriding keybinds for other major modes, when it is set as a hook for python-mode only.
CeleritasCelery commentedon Jan 1, 2021
It is actually a global minor mode, which is why you are seeing the conflict.
grauschnabel commentedon Feb 10, 2021
It would be great to make it only enable with python-mode and not global. It is also conflicting with
org-schedule (C-c C-s)- and when I'm inside org, I'm not at all working on any python project - no need of pyenv, but projectile is on. So can we use it as python-mode hook too?[-]The pyenv keybinds conflict with magit's commit sign-off[/-][+]The pyenv keybinds conflict with magit/org[/+]CeleritasCelery commentedon Feb 10, 2021
It looks like #31 was submitted to do exactly that.
wenzlawski commentedon Jan 27, 2024
For anyone still annoyed by the overriding of keys, a workaround I've found is to delete the keymap of
pyenv-mode-mapand rebind the commands in the python-mode-map. One obvious downside to this is having the keys mapped permanently, whether inpyenv-modeor not, but since I use it pretty much all the time it works for me.CeleritasCelery commentedon Jan 29, 2024
I don't use
pyenv-modeso I can't answer this myself, but would making this mode buffer local be the right solution? If so, we can do that.