summaryrefslogtreecommitdiff
path: root/lisp/appearance/modeline.el
diff options
context:
space:
mode:
authorJakob L. Kreuze2022-05-03 20:47:04 -0400
committerJakob L. Kreuze2022-05-07 20:33:37 -0400
commita1785d90980ad63ca5a25044f3f155cfef7e4697 (patch)
tree7328a3ca7fe2e29e767410bb08bc9143fa2903db /lisp/appearance/modeline.el
parentf8d2925ca76bc73f22cf1e96a00c1e6ee715ade1 (diff)
[term] Show terminal title in modeline
Diffstat (limited to 'lisp/appearance/modeline.el')
-rw-r--r--lisp/appearance/modeline.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/appearance/modeline.el b/lisp/appearance/modeline.el
index c3acaf7..042142f 100644
--- a/lisp/appearance/modeline.el
+++ b/lisp/appearance/modeline.el
@@ -106,6 +106,12 @@ RIGHT aligned respectively."
"] [%*] Ln: %l/"
(number-to-string (1+ (count-lines 1 (point-max))))
" Col: %c"))
+ ((and (eq major-mode 'vterm-mode) (boundp 'vterm-buffer-title) vterm-buffer-title)
+ (concat "%b [%m: "
+ vterm-buffer-title
+ "] [%*] Ln: %l/"
+ (number-to-string (1+ (count-lines 1 (point-max))))
+ " Col: %c"))
((and (eq major-mode 'eww-mode) (boundp 'eww-data))
(concat (plist-get eww-data :title)
" [%m] [%*] Ln: %l/"

© 2015 - 2026 Jakob L. Kreuze