From: John Wiegley <johnw@newartisans.com>
To: emacs-orgmode@gnu.org
Subject: FR: A configuration option for the behavior of `org-fit-agenda-window'
Date: Tue, 09 Oct 2007 20:00:27 -0400 [thread overview]
Message-ID: <m2r6k3zvms.fsf@newartisans.com> (raw)
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
next reply other threads:[~2007-10-10 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 0:00 John Wiegley [this message]
2007-10-10 7:07 ` FR: A configuration option for the behavior of `org-fit-agenda-window' Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r6k3zvms.fsf@newartisans.com \
--to=johnw@newartisans.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).