-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
VTerm compatability #1332
Comments
OK, i have hacked around this issue by creating my own modes for the time being
But we could change the way the global prelude mode is initialised to be more like this if we want to allow it to support being disabled in some modes, but on by default. |
Perhaps we can move this keybinding (or |
I think it would be a good idea to move |
Here's a work-around simple enough for me to understand: (define-key prelude-mode-map (kbd "C-a") nil)
(define-key prog-mode-map (kbd "C-a") 'crux-move-beginning-of-line) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Is your feature request related to a problem? Please describe.
prelude-mode
overrides the behavior ofC-a
among other bindings which makes vterm not work. The terminal never receives the key press,This is because the prelude-mode bindings are implemented in a global minor mode that takes precedence over the vterm major-mode bindings.
Describe the solution you'd like
The real solution i want is to be able to use vterm without losing the
C-c p
binding.By far the least impacting to prelude-mode is to do something like the option 3 below, then i can make a minor mode only used in vterm that has the global keys i want from the prelude map, like
projectile-command-map
.Describe alternatives you've considered
Remove the offending
crux
keybindings from theprelude-mode
global mapClone the keymap, make it buffer local and remove any offending keys. https://stackoverflow.com/questions/13102494/buffer-locally-overriding-minor-mode-key-bindings-in-emacs
Add logic so we can make it possible to disable the prelude-mode in some buffers,
global-smart-tab-mode
does it this way usingdefine-globalized-minor-mode
https://github.com/genehack/smart-tab/blob/master/smart-tab.el#L207-L230Disable prelude mode, make my own custom keymap for the same thing.
The text was updated successfully, but these errors were encountered: