diff options
| author | jao <jao@gnu.org> | 2025-11-08 22:21:04 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2025-11-08 22:21:04 +0000 |
| commit | e1b778f5f5963ca02177875dea09f4a12d95741b (patch) | |
| tree | 3ec192de9327870879dbb602b604359183fd0f2a /custom | |
| parent | ef2b6cfab3a18688f341a276a599ea23c9ba3785 (diff) | |
| download | elibs-e1b778f5f5963ca02177875dea09f4a12d95741b.tar.gz elibs-e1b778f5f5963ca02177875dea09f4a12d95741b.tar.bz2 | |
afio: per workspace frame parameters
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/jao-custom-notmuch.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el index 3f714b3..dd0d4bd 100644 --- a/custom/jao-custom-notmuch.el +++ b/custom/jao-custom-notmuch.el @@ -541,7 +541,14 @@ ch--search-keys i) (advice-add 'notmuch-tree :before #'jao-notmuch-before-tree) (advice-add 'notmuch-tree-quit :after #'jao-notmuch-after-tree-quit)) - (when jao-notmuch-enabled (jao-notmuch-use-two-panes)) + (defun jao-notmuch-use-one-pane () + (interactive) + (add-to-list 'jao-afio-frame-parameters '("mail" ((width . 120)))) + (advice-remove 'notmuch-tree #'jao-notmuch-before-tree) + (advice-remove 'notmuch-tree-quit #'jao-notmuch-after-tree-quit)) + + (when jao-notmuch-enabled + (jao-d-l (jao-notmuch-use-one-pane) (jao-notmuch-use-two-panes))) :bind (:map notmuch-tree-mode-map (("b" . jao-notmuch-browse-urls) |
