0

Is there a way to put the ansi-term state (char-mode or term-mode) in the mode line?

2 Answers 2

2

Do you mean term-char-mode and term-line-mode? These are printed by default in the mode-line here (Emacs 28.1 and 29.0.50). Here is how it looks when starting from emacs -q:

enter image description here

enter image description here

So then we can look up the mode-line-format where we find that the modes are formatted via the mode-line-modes variable. Finally from that variable we find that the ':char/:line' part is formatted via the mode-line-process variable.

0

Add 'mode-line-process to your mode-line format.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.