diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-18 11:32:54 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-20 10:53:14 -0700 |
commit | d83f2c8c7557910cc6c916193ce37e9f66d7eedc (patch) | |
tree | c2ea2f302c755a9bc5e9752f25a048976a965c59 /.emacs.d | |
parent | 83faed274588ac28b12685e8d7c74fe418634c74 (diff) | |
download | dotfiles-d83f2c8c7557910cc6c916193ce37e9f66d7eedc.tar.gz |
spw/gnus-notmuch-ephemeral-search: open new frames or tabs
Should keep previous searches more easily accessible.
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 9d262aae..e1026b3d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3038,7 +3038,12 @@ mutt's review view, after exiting EDITOR." ;; Instead, can type 'A W' to view whole threads. nil)) (require 'gnus) - (unless (gnus-alive-p) (gnus)) + (if (gnus-alive-p) + (when (derived-mode-p 'gnus-article-mode 'gnus-summary-mode) + (if (spw/use-tabs-not-frames) + (tab-bar-new-tab) + (select-frame (make-frame-command)))) + (gnus)) (gnus-group-read-ephemeral-group (concat "nnselect-" (message-unique-id)) (list 'nnselect "nnselect") nil (cons (current-buffer) gnus-current-window-configuration) nil nil |