关于如何配置 Wanderlust 以在新缓冲区而不是拆分窗口中打开电子邮件的任何想法?四 (4) 个窗口发生了太多事情——摘要消息缓冲区;消息缓冲区;大哥阴险的数据库地址管理器;和迷你缓冲区。(请参见下面的屏幕截图。)
我想我已经在 中找到了代码的相关部分wl-message.el
,但我不确定要更改哪个部分。 (setq wl-message-window-size '(1 . 1))
ininit.el
不是我要找的,因为我仍然必须与其他缓冲区共享屏幕。
我花了很多时间切换和关闭窗口以获得完整大小的缓冲区,并且我希望在检查我的电子邮件时消除多个窗口。
谢谢 。. . 任何帮助将不胜感激。
;;; wl-message.el -- Message buffer handling from summary buffer.
(defun wl-message-buffer-window ()
"Get message buffer window if any."
(let* ((start-win (selected-window))
(cur-win start-win))
(catch 'found
(while (progn
(setq cur-win (next-window cur-win))
(with-current-buffer (window-buffer cur-win)
(if (or (eq major-mode 'wl-message-mode)
(eq major-mode 'mime-view-mode))
(throw 'found cur-win)))
(not (eq cur-win start-win)))))))
(defun wl-message-select-buffer (buffer)
"Select BUFFER as a message buffer."
(let ((window (get-buffer-window buffer))
(sum (car wl-message-window-size))
(mes (cdr wl-message-window-size))
whi)
(when (and window
(not (eq (with-current-buffer (window-buffer window)
wl-message-buffer-cur-summary-buffer)
(current-buffer))))
(delete-window window)
(run-hooks 'wl-message-window-deleted-hook)
(setq window nil))
(if window
(select-window window)
(when wl-fixed-window-configuration
(delete-other-windows)
(and wl-stay-folder-window
(wl-summary-toggle-disp-folder)))
;; There's no buffer window. Search for message window and snatch it.
(if (setq window (wl-message-buffer-window))
(select-window window)
(setq whi (1- (window-height)))
(if mes
(progn
(let ((total (+ sum mes)))
(setq sum (max window-min-height (/ (* whi sum) total)))
(setq mes (max window-min-height (/ (* whi mes) total))))
(if (< whi (+ sum mes))
(enlarge-window (- (+ sum mes) whi)))))
(split-window (get-buffer-window (current-buffer)) sum)
(other-window 1)))
(switch-to-buffer buffer)))
(来源:lawlist.com)