summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--init.org4
-rw-r--r--lib/eos/jao-minibuffer.el6
2 files changed, 5 insertions, 5 deletions
diff --git a/init.org b/init.org
index 3429014..c573705 100644
--- a/init.org
+++ b/init.org
@@ -762,8 +762,8 @@
(defun jao-tracking-next-buffer ()
(interactive)
- (jao-afio--goto-main)
- (tracking-next-buffer))
+ (tracking-next-buffer)
+ (jao-tracking-update-minibuffer))
:bind (("C-c C-SPC" . jao-tracking-next-buffer)))
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index 4e5abf5..ba27ce5 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -167,9 +167,6 @@
(setq-default mode-line-position jao-minibuffer--mode-line-position)
(dolist (b (buffer-list))
(with-current-buffer b (setq-local mode-line-format '(" "))))
- (advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh)
- (advice-add 'select-window :after #'jao-minibuffer-refresh)
- ;; (add-hook 'window-selection-change-functions #'jao-minibuffer-refresh)
(jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order)
(jao-minibuffer-adjust-mode-line-faces))
@@ -194,6 +191,9 @@
(setq set-message-function #'jao-minibuffer--format-msg)
(setq clear-message-function #'jao-minibuffer-refresh)
+;; (add-hook 'window-selection-change-functions #'jao-minibuffer-refresh)
+(advice-add 'select-window :after #'jao-minibuffer-refresh)
+(advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh)
(provide 'jao-minibuffer)
;;; jao-minibuffer.el ends here