emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Making org-fit-agenda-window able to be turned off?
@ 2012-04-15  5:23 Kyle Machulis
  2012-04-15 13:57 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Kyle Machulis @ 2012-04-15  5:23 UTC (permalink / raw)
  To: emacs-orgmode

Would adding a flag to skip calls to org-fit-agenda-window be handy to
anyone else?

Some context: I use workgroups.el
(https://github.com/tlh/workgroups.el) for my desktop management
setup. I have a workgroup that keeps my org-mode daily agenda and
sauron (https://github.com/djcb/sauron) up as my sort of "current
status" desktop. Any time I update the agenda buffer using 'g', the
windows rebalance because of the call to org-fit-agenda-window, making
the sauron window take far more than I want it to. In order to keep
the window sizes the same, I wrap org-fit-agenda-window in defadvice
that checks a variable I set (gross, I know), but was wondering if it
might be useful in other situations and worth adding to org-agenda, or
if it's just me.

There's already checks all over the place for whether org-multi-buffer
is non-nil, which if it is means org-fit-agenda-window doesn't run,
but I think that's for backgrounded buffer updates?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Making org-fit-agenda-window able to be turned off?
  2012-04-15  5:23 Making org-fit-agenda-window able to be turned off? Kyle Machulis
@ 2012-04-15 13:57 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2012-04-15 13:57 UTC (permalink / raw)
  To: Kyle Machulis; +Cc: emacs-orgmode

Kyle Machulis <kyle@nonpolynomial.com> wrote:

> Would adding a flag to skip calls to org-fit-agenda-window be handy to
> anyone else?
> 
> Some context: I use workgroups.el
> (https://github.com/tlh/workgroups.el) for my desktop management
> setup. I have a workgroup that keeps my org-mode daily agenda and
> sauron (https://github.com/djcb/sauron) up as my sort of "current
> status" desktop. Any time I update the agenda buffer using 'g', the
> windows rebalance because of the call to org-fit-agenda-window, making
> the sauron window take far more than I want it to. In order to keep
> the window sizes the same, I wrap org-fit-agenda-window in defadvice
> that checks a variable I set (gross, I know), but was wondering if it
> might be useful in other situations and worth adding to org-agenda, or
> if it's just me.
> 

(untested)

Does

	(setq org-agenda-window-setup 'current-window)

help?

Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-15 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-15  5:23 Making org-fit-agenda-window able to be turned off? Kyle Machulis
2012-04-15 13:57 ` Nick Dokos

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).