[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] FR: A configuration option for the behavior of `org-fit-agenda
From: |
John Wiegley |
Subject: |
[Orgmode] FR: A configuration option for the behavior of `org-fit-agenda-window' |
Date: |
Tue, 09 Oct 2007 20:00:27 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) |
When I switch to a daily agenda view, I like to know that what I'm seeing is
everything there is to see. The current definition of org-fit-agenda-window
sets a maximum height for the agenda view to 3/4 the frame height. This
always leaves me wondering if maybe there's one more task, just beyond the
bottom of the window. I recommend the following customization variable:
(defvar org-fit-whole-agenda-window nil)
(defun org-fit-agenda-window ()
"Fit the window to the buffer size."
(and (memq org-agenda-window-setup '(reorganize-frame))
(fboundp 'fit-window-to-buffer)
(if org-fit-agenda-window
(fit-window-to-buffer)
(fit-window-to-buffer nil (/ (* (frame-height) 3) 4)
(/ (frame-height) 2)))))
John
- [Orgmode] FR: A configuration option for the behavior of `org-fit-agenda-window',
John Wiegley <=