emacs - A function that can toggle between term-char-mode and term-line-mode submodes? -


in term.el, can change 1 submode another. but, there way toggle between them 1 function(and 1 key-binding)? question: there way mark text keyboard in term-char-mode?

first, 1 should ask single question in single posting.

second, there no toggle function in term.el can add 1 yourself:

(defun term-toggle-mode ()   (interactive)   (if (term-in-line-mode)        (term-char-mode)       (term-line-mode))) (define-key term-mode-map "\c-c\c-t" 'term-toggle-mode) 

you can see other term keymaps using c-h term.*map ret , add define-key forms them too.

third, use cua library select text keyboard.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -