From 14f7263329bf8be3b35578a2dea42e3456027e66 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 28 Aug 2022 22:59:05 +0100 Subject: minibuffer afio indicator for frames --- init.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 599492f..5c1250b 100644 --- a/init.el +++ b/init.el @@ -1313,14 +1313,15 @@ :config (jao-afio-setup (not window-system))) (defun jao-current--frame-id () - (propertize (if (and (jao-exwm-enabled-p) - (not (bound-and-true-p jao-exwm--use-afio))) - (format "F%s" exwm-workspace-current-index) - (format "%s" (jao-afio-frame-no))) + (propertize (cond ((and (jao-exwm-enabled-p) + (not (bound-and-true-p jao-exwm--use-afio))) + (format "F%s" exwm-workspace-current-index)) + (jao-afio-use-frames (jao-afio-frame-name)) + (t (format "%s" (jao-afio-frame-no)))) 'face 'font-lock-warning-face)) -(add-hook 'jao-afio-switch-hook #'tracking-remove-visible-buffers) (jao-minibuffer-add-variable '(jao-current--frame-id) 100) +(add-hook 'jao-afio-switch-hook 'jao-minibuffer-refresh t) (defun jao-afio--set-mode-line () (when (and window-system (fboundp 'jao-mode-line-hide-inactive)) -- cgit v1.2.3