diff options
author | jao <jao@gnu.org> | 2021-11-11 22:17:53 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-11-11 22:17:53 +0000 |
commit | ac8b1eb116ceec21c0875dbe7661ae9d90f4e3ad (patch) | |
tree | f480366433f8523ca0fbc76a962e4d01d81acbda | |
parent | 2f4b7f51aa8bd18af1bb31006a59c29c2adae885 (diff) | |
download | elibs-ac8b1eb116ceec21c0875dbe7661ae9d90f4e3ad.tar.gz elibs-ac8b1eb116ceec21c0875dbe7661ae9d90f4e3ad.tar.bz2 |
not toggling inactive mode line in docs workspace
-rw-r--r-- | init.org | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -697,8 +697,15 @@ (interactive) (message "%s" (format-mode-line mode-line-format))) + (defun jao--set-inactive-face (x frame) + (unless (eq x (face-attribute 'mode-line-inactive :height frame)) + (set-face-attribute 'mode-line-inactive frame :height x))) + (defun jao--hide-inactive-mode-line (frame) - (set-face-attribute 'mode-line-inactive frame :height 1)) + (jao--set-inactive-face 1 frame)) + + (defun jao--show-inactive-mode-line (frame) + (jao--set-inactive-face 'unspecified frame)) (add-to-list 'after-make-frame-functions #'jao--hide-inactive-mode-line) @@ -1018,6 +1025,7 @@ (window-height . ,(or height 25)))) (defmacro jao-with-attached-buffer (name-rx height &rest body) + (declare (indent defun)) `(let ((display-buffer-alist '(,(jao-attached-buffer-entry name-rx height)))) ,@body)) @@ -1216,6 +1224,13 @@ (add-hook 'jao-afio-switch-hook #'tracking-remove-visible-buffers) (jao-minibuffer-add-variable '(jao-current--frame-id) 100) + + (defun jao-afio--set-mode-line () + (if (string= "Docs" (jao-afio-current-frame)) + (jao--show-inactive-mode-line nil) + (jao--hide-inactive-mode-line nil))) + + (add-hook 'jao-afio-switch-hook #'jao-afio--set-mode-line) #+end_src * Writing and writing modes *** Org mode |