[Top][All Lists]

[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? 


(defun go-or-make-agenda () (interactive)
  (if (get-buffer "\*Org Agenda\*")
      (switch-to-buffer "\*Org Agenda\*")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]