diff options
| author | Jakob L. Kreuze | 2020-12-04 21:58:58 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-12-04 21:58:58 -0500 |
| commit | 25636bc58f29c12a38f4ee265cdb715d6b835d8e (patch) | |
| tree | 9ee1207aa162b9240797c8739ca1f73b5c86e8c9 /lisp/appearance | |
| parent | 4a0f0e56577ab6ed49d1f039f27c0f2847b63a1e (diff) | |
Implement modeline title for shell-mode.
Diffstat (limited to 'lisp/appearance')
| -rw-r--r-- | lisp/appearance/modeline.el | 6 |
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)))) |