[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
If arg, open in new frame
From: |
Tory S. Anderson |
Subject: |
If arg, open in new frame |
Date: |
Tue, 09 Sep 2014 17:48:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
I have a function that checks for a buffer and either switches to it or creates
it. I want it to optionally take an arg, and if an arg is supplied, open/find
said buffer in a new frame. My elisp-fu is still young; can you help?
Function:
(defun go-or-make-agenda () (interactive)
(if (get-buffer "\*Org Agenda\*")
(switch-to-buffer "\*Org Agenda\*")
(org-agenda-list)))
- If arg, open in new frame,
Tory S. Anderson <=
- Re: If arg, open in new frame, Emanuel Berg, 2014/09/09
- RE: If arg, open in new frame, Tory S. Anderson, 2014/09/10
- Re: If arg, open in new frame, Emanuel Berg, 2014/09/10
- Re: If arg, open in new frame, Rusi, 2014/09/10