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
- character mode (acts more terminal
- 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
Post a Comment