0

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

2 Answers2

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.

dalanicolai
  • 7,795
  • 8
  • 24
0

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