keyboard shortcuts - Emacs: How add custom key bindings to be used with char mode of ansi-term? -


i wanna add key bindings on ansi-term's char mode couldn't yet... have tips that? possible?

all key bindings works in line mode, obviously, how can enable key bindings (not all) in char mode?

there 2 different modes used ansi-term

  1. character mode (acts more terminal
  2. line mode (acts more emacs buffer)

for character mode, you'll want modify term-raw-map, like:

(define-key term-raw-map [(control ?a)] 'term-send-raw) 

will send \c-a underlying terminal. don't know key-map line-mode, i'm guessing it's character mode want play with.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -