From d4fe6b51138beb3932650614a527e416e3f1ca51 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 23 May 2021 00:31:48 +0100 Subject: jao-minibuffer: circe nicks in mode line --- lib/eos/jao-minibuffer.el | 6 +++--- 1 file 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"))) -- cgit v1.2.3