summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-23 00:31:48 +0100
committerjao <jao@gnu.org>2021-05-23 00:31:48 +0100
commitd4fe6b51138beb3932650614a527e416e3f1ca51 (patch)
tree2299878ec18dcd23c96577b6d2f5eb8e6639845c
parent8c01c285375e99e817a065be5dd8402428e0d16b (diff)
downloadelibs-d4fe6b51138beb3932650614a527e416e3f1ca51.tar.gz
elibs-d4fe6b51138beb3932650614a527e416e3f1ca51.tar.bz2
jao-minibuffer: circe nicks in mode line
-rw-r--r--lib/eos/jao-minibuffer.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index 9c0ecd2..d535f93 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -96,11 +96,9 @@
msg
(jao-minibuffer--format-msg msg)))
-(defconst jao-minibuffer--circe
- '(circe-chat-target (:eval (format " [%d]" (length (circe-channel-nicks))))))
-
(defvar-local w3m-current-title nil)
(defvar-local eww-data nil)
+(defvar circe-chat-target nil)
(setq-default mode-line-position
'("%n L%l"
@@ -112,6 +110,8 @@
'gnus-article-mode
'gnus-summary-mode)
mode-line-buffer-identification)
+ ((derived-mode-p 'circe-channel-mode)
+ (format "%s [%d]" (buffer-name) (length (circe-channel-nicks))))
((not (null eww-data)) (plist-get eww-data :title))
(w3m-current-title)
(t "%b")))