summaryrefslogtreecommitdiff
path: root/lisp/appearance
diff options
context:
space:
mode:
authorJakob L. Kreuze2020-12-04 21:58:58 -0500
committerJakob L. Kreuze2020-12-04 21:58:58 -0500
commit25636bc58f29c12a38f4ee265cdb715d6b835d8e (patch)
tree9ee1207aa162b9240797c8739ca1f73b5c86e8c9 /lisp/appearance
parent4a0f0e56577ab6ed49d1f039f27c0f2847b63a1e (diff)
Implement modeline title for shell-mode.
Diffstat (limited to 'lisp/appearance')
-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 4fa1710..9dde6c6 100644
--- a/lisp/appearance/modeline.el
+++ b/lisp/appearance/modeline.el
@@ -76,6 +76,12 @@ RIGHT aligned respectively."
"/"
(number-to-string (pdf-cache-number-of-pages))
"]"))
+ ((and (eq major-mode 'shell-mode) (boundp 'shell-title))
+ (concat "%b [%m: "
+ shell-title
+ "] [%*] Ln: %l/"
+ (number-to-string (1+ (count-lines 1 (point-max))))
+ " Col: %c"))
(t
(concat "%b [%m] [%*] Ln: %l/"
(number-to-string (1+ (count-lines 1 (point-max))))

© 2015 - 2026 Jakob L. Kreuze