Is there a way to put the ansi-term state (char-mode or term-mode) in the mode line?
Asked
Active
Viewed 48 times
0
Elsa Gonsiorowski
- 113
- 4
2 Answers
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:
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.
dalanicolai
- 7,795
- 8
- 24

