* org-agenda-other-frame
@ 2015-02-02 15:01 Tory S. Anderson
2015-02-02 16:24 ` org-agenda-other-frame Kyle Meyer
0 siblings, 1 reply; 2+ messages in thread
From: Tory S. Anderson @ 2015-02-02 15:01 UTC (permalink / raw)
To: orgmode list
I have a key which calls `gnus-other-frame`, a handy function that not only pops up a gnus frame, but also kills the frame when I exit gnus. I'd like something similar with my org agenda; the following function is used to pop it up, but I'm not sure how to kill the frame when I hit close the agenda (i.e. hitting `q`). The result should work whether I'm using sticky agenda or not. Any suggestions?
--8<---------------cut here---------------start------------->8---
(defun go-or-make-agenda (&optional new-frame)
(interactive "P")
(let ((buffer org-agenda-buffer-name)
(my-switch-function (if new-frame 'switch-to-buffer-other-frame 'switch-to-buffer)))
(if (get-buffer buffer)
(funcall my-switch-function buffer)
(org-agenda-list))))
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-agenda-other-frame
2015-02-02 15:01 org-agenda-other-frame Tory S. Anderson
@ 2015-02-02 16:24 ` Kyle Meyer
0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2015-02-02 16:24 UTC (permalink / raw)
To: Tory S. Anderson; +Cc: orgmode list
torys.anderson@gmail.com (Tory S. Anderson) wrote:
> I have a key which calls `gnus-other-frame`, a handy function that not
> only pops up a gnus frame, but also kills the frame when I exit
> gnus. I'd like something similar with my org agenda; the following
> function is used to pop it up, but I'm not sure how to kill the frame
> when I hit close the agenda (i.e. hitting `q`). The result should work
> whether I'm using sticky agenda or not. Any suggestions?
Does
(setq org-agenda-window-setup 'other-frame)
do what you want?
--
Kyle
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-02 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 15:01 org-agenda-other-frame Tory S. Anderson
2015-02-02 16:24 ` org-agenda-other-frame Kyle Meyer
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).