From bcd21b452e8e293b4542ff07d255561c91733598 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 6 Nov 2025 18:43:58 +0000 Subject: better restoration of notmuch geometry --- custom/jao-custom-notmuch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el index 68a7d99..c71e6b6 100644 --- a/custom/jao-custom-notmuch.el +++ b/custom/jao-custom-notmuch.el @@ -485,8 +485,8 @@ (when (string-prefix-p "Hack" jao-themes-default-face) "Source Code Pro"))) (defun jao-notmuch-before-tree (&rest _args) + (window-configuration-to-register ?G) (when (string= (buffer-name) "*notmuch-hello*") - (window-configuration-to-register ?G) (when (< (frame-width) 230) (delete-other-windows)) (split-window-right 40) (other-window 1))) @@ -496,7 +496,7 @@ (defun jao-notmuch-after-tree-quit (&optional _both) (when (not (derived-mode-p 'notmuch-tree-mode 'notmuch-hello-mode)) (jump-to-register ?G)) - (jao-notmuch-refresh-hello (= 0 (mod (cl-incf jao-notmuch--visits) 50)))) + (jao-notmuch-refresh-hello (= 0 (mod (cl-incf jao-notmuch--visits) 5)))) (defun jao-notmuch-tree--sentinel (proc) (when (eq (process-status proc) 'exit) -- cgit v1.2.3