diff options
author | jao <jao@gnu.org> | 2022-08-28 22:59:05 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-08-28 22:59:05 +0100 |
commit | 14f7263329bf8be3b35578a2dea42e3456027e66 (patch) | |
tree | e1090d8426d7e319614b6c97c5c166adae59e272 | |
parent | 692b296a7cbd13a0689fdf9fdc9608d116ab625e (diff) | |
download | elibs-14f7263329bf8be3b35578a2dea42e3456027e66.tar.gz elibs-14f7263329bf8be3b35578a2dea42e3456027e66.tar.bz2 |
minibuffer afio indicator for frames
-rw-r--r-- | init.el | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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)) |