From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Prince Subject: Re: org-capture-hook only when in frame? Date: Tue, 20 Sep 2011 19:55:06 -0400 Message-ID: <87k4927orp.fsf@hermes.hocat.ca> References: <87pqiual4k.fsf@algae.riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6A9g-0006zM-Ms for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 19:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6A9f-00054o-N5 for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 19:55:12 -0400 Received: from socrates.hocat.ca ([76.10.188.53]:47762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6A9f-00054f-HR for emacs-orgmode@gnu.org; Tue, 20 Sep 2011 19:55:11 -0400 In-Reply-To: <87pqiual4k.fsf@algae.riseup.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Micah Anderson , emacs-orgmode@gnu.org On Tue, 20 Sep 2011 18:45:31 -0400, Micah Anderson wrote: Non-text part: multipart/signed > > I have a function to create a frame for capture mode that I can call > with emacsclient at any time: > > ;; Initialization of capture frames > (defun make-capture-frame () > "Create a new frame and run org-capture" > (interactive) > (make-frame '((name . "capture") (width . 80) (height . 10))) > (select-frame-by-name "capture") > ;; Org-remember splits windows, force it to a single window (let ((org-capture-mode-hook)) > (add-hook 'org-capture-mode-hook 'delete-other-windows) > (org-capture) ) > ) Would probably work, although there may be better ways. Tom