Skip to content

VTerm compatability #1332

@russell

Description

@russell

Is your feature request related to a problem? Please describe.

prelude-mode overrides the behavior of C-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

  1. Remove the offending crux keybindings from the prelude-mode global map

  2. Clone 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

  3. Add logic so we can make it possible to disable the prelude-mode in some buffers, global-smart-tab-mode does it this way using define-globalized-minor-mode https://github.com/genehack/smart-tab/blob/master/smart-tab.el#L207-L230

  4. Disable prelude mode, make my own custom keymap for the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions