Multiple: Understanding Keyboard Bindings

I am a little confused by the difference between the two lists in multi-user (by the way, where is the official repository located?)

  • term-bind-key-alist
  • term-unbind-key-list

There should be two things in my head:

  • The keys we want Emacs to capture and interpret in a certain way (by associating them with commands)
  • The steps that Emacs sends directly to the shell (as-is).

How exactly do term-unbind-key-list and term-bind-key-alist define these lists and bindings?

Also supports multi-user support for line mode and character mode ? If so, how does the mode in which we change the way we press keys and these lists change?

+1
source share
1 answer

I saw the multi-term.rcp for el-get , it is downloaded from emacswiki.

term-bind-key-alist intended for functions such as term-send-up or term-previous-input , whose bindings are set in the style of "emacs" instead of "term style".

term-unbind-key-list is an analogue for setting 'nil (see ansi-term in character mode ). By default, almost all keys in term-raw-map bound to the term-send-raw function, and 'nil just unties them.

term-bind-key-alist and term-unbind-key-list are used in term-raw-map ( character mode ) and term-mode-map ( line mode ) in multi-term.el isn’t used at all.

I do not use multi-user mode, I configure term-mode-map and term-raw-map directly. For example, to switch between modes:

 (define-key term-mode-map (kbd "Cj") 'term-char-mode) (define-key term-raw-map (kbd "Cj") 'term-line-mode) 
+3
source

All Articles