summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-08-16 00:11:08 +0800
committerJSDurand <mmemmew@gmail.com>2021-08-16 00:11:08 +0800
commit594dc7eda49288282ee8c02fc0594fc3aeb97fad (patch)
tree013effdf7079e5b0c0db1297d4ce313ba213c25c /basic.el
parent16e4331df1ed3a6ed868185ea7cb7983419a484e (diff)
Display Gnus in a separate tab
The separation of Gnus into a tab means I can better handle the mails and deal with them without interrupting my other activities. * basic.el (display-buffer-alist): This creates the tab to display * GNUS. * gnus-conf.el (durand-display-gnus, gnus): This buries the original buffer and calls the previous function. And gnus is after-adviced by this function. This is needed since gnus calls `switch-to-buffer' instead of `display-buffer' internally. (durand-gnus-kill-tab): The kill-tab function kills the tab, if it is present. (durand-gnus-quit, gnus-group-mode-map): Bury the buffer and kills the tab. Bind to the original "q" key. (gnus-exit-gnus-hook): Call the kill-tab function in this hook.
Diffstat (limited to 'basic.el')
-rw-r--r--basic.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/basic.el b/basic.el
index ec10f6f..e23688d 100644
--- a/basic.el
+++ b/basic.el
@@ -199,6 +199,9 @@ This will maintain the frame's width and height as well."
(window-height . 0.37))
(,(rx (seq bos "magit: "))
(display-buffer-same-window))
+ (,(rx (seq bos "*Group*" eos))
+ (display-buffer-in-tab durand-display-in-one-window)
+ (tab-name . "email"))
(,(rx (seq bos "*Flymake"))
(display-buffer-at-bottom)
(window-height . 0.2))