From a1785d90980ad63ca5a25044f3f155cfef7e4697 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Tue, 3 May 2022 20:47:04 -0400 Subject: [term] Show terminal title in modeline --- lisp/appearance/modeline.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisp/appearance') 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/" -- cgit v1.3