diff options
author | jao <jao@gnu.org> | 2022-09-03 23:30:58 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-03 23:30:58 +0100 |
commit | 1f6ca44844745f469704e778730d685e3f87fb98 (patch) | |
tree | 002d5f2e8a08d9b16583d6265a0bbbcde9d23254 | |
parent | d0ec372defb36c6ab56ba2fa0a55c721b6966933 (diff) | |
download | elibs-1f6ca44844745f469704e778730d685e3f87fb98.tar.gz elibs-1f6ca44844745f469704e778730d685e3f87fb98.tar.bz2 |
attic
-rw-r--r-- | attic/misc.el | 11 | ||||
-rw-r--r-- | init.el | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/attic/misc.el b/attic/misc.el index fe6a325..a720042 100644 --- a/attic/misc.el +++ b/attic/misc.el @@ -310,3 +310,14 @@ "tidal-hifi --enable-features=UseOzonePlatform --ozone-platform=wayland &")) (start-process-shell-command "tidal-hifi" nil c)) (jao-sway-run-or-focus-tidal))) + +;; + +(defun jao-afio--set-mode-line () + (when (and window-system (fboundp 'jao-mode-line-hide-inactive)) + (if (string= "docs" (jao-afio-frame-name)) + (jao-mode-line-show-inactive nil) + (jao-mode-line-hide-inactive nil)))) + +(unless jao-modeline-in-minibuffer + (add-hook 'jao-afio-switch-hook #'jao-afio--set-mode-line)) @@ -1381,16 +1381,6 @@ 'face 'font-lock-warning-face)) (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)) - (if (string= "docs" (jao-afio-frame-name)) - (jao-mode-line-show-inactive nil) - (jao-mode-line-hide-inactive nil)))) - -(unless jao-modeline-in-minibuffer - (add-hook 'jao-afio-switch-hook #'jao-afio--set-mode-line)) ;;; Writing and writing modes ;;;; copyright notices |