diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eos/jao-mode-line.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/eos/jao-mode-line.el b/lib/eos/jao-mode-line.el index 968ac35..0fd5a2e 100644 --- a/lib/eos/jao-mode-line.el +++ b/lib/eos/jao-mode-line.el @@ -71,6 +71,8 @@ ("") ("%n %2c %l " (:eval (format "%d" (line-number-at-pos (point-max))))))) +(defvar-local eww-data nil) + (defvar jao-mode-line--bid '(:eval (cond ((derived-mode-p 'gnus-group-mode 'gnus-article-mode @@ -78,6 +80,8 @@ mode-line-buffer-identification) ((derived-mode-p 'circe-channel-mode) (format "%s [%d]" (buffer-name) (length (circe-channel-nicks)))) + ((not (null eww-data)) + (or (plist-get eww-data :title) "No title")) (t "%b")))) (defvar jao-mode-line--format |