From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: org-capture-other-frame Date: Mon, 2 May 2011 16:14:55 -0500 Message-ID: References: <877ha9nfgy.fsf@ginnungagap.bsc.es> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH0SH-0003n0-CR for emacs-orgmode@gnu.org; Mon, 02 May 2011 17:14:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QH0SG-0005Qk-Cg for emacs-orgmode@gnu.org; Mon, 02 May 2011 17:14:57 -0400 Received: from mail-bw0-f52.google.com ([209.85.214.52]:44037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QH0SG-0005Qg-3u for emacs-orgmode@gnu.org; Mon, 02 May 2011 17:14:56 -0400 Received: by bwj24 with SMTP id 24so8433234bwj.39 for ; Mon, 02 May 2011 14:14:55 -0700 (PDT) In-Reply-To: <877ha9nfgy.fsf@ginnungagap.bsc.es> 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: =?ISO-8859-1?Q?Llu=EDs?= Cc: emacs-orgmode@gnu.org Hi LLuis, Thanks for sharing, this looks really interesting. Could you give us a bit more information on how you are using it (how you are setting up the hotkeys, what's the workflow, etc)? Some specs about your system would help as well. I'm using OSX 10.6. Cheers! Marcelo. On Mon, May 2, 2011 at 1:07 PM, Llu=EDs wrote: > I've made a little function to launch org-capture on another frame, > which is very handy when plugged into a hotkey and working with other > applications. > > It lacks some settings that I already have active system wide (like no > scrollbars, no toolbar and the like), so you should probably tune those > (a defcustom for the frame parameters should suffice). > > In any case, tell me (directly, as I'm not not subscribed) if you're > going to install this into org-mode. Otherwise I'll upload the snippet > into emacs wiki: > > #+begin_src lisp > (defun my-org-capture-other-frame () > =A0"Create a new frame and run org-capture." > =A0(interactive) > =A0(make-frame '((name . "Org-Capture") > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(width =A0. 120) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(height . =A020) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(menu-bar-lines . 0) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(tool-bar-lines . 0) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(auto-lower . nil) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(auto-raise . t))) > =A0(select-frame-by-name "Org-Capture") > =A0(if (condition-case nil > =A0 =A0 =A0 =A0 =A0(progn (org-capture) t) > =A0 =A0 =A0 =A0(error nil)) > =A0 =A0 =A0(delete-other-windows) > =A0 =A0(my-org-capture-other-frame-cleanup))) > > (defun my-org-capture-other-frame-cleanup () > =A0"Close the Org-Capture frame." > =A0(if (equal "Org-Capture" (frame-parameter nil 'name)) > =A0 =A0 =A0(delete-frame))) > (add-hook 'org-capture-after-finalize-hook 'my-org-capture-other-frame-cl= eanup) > #+end_src > > > Thanks, > =A0 =A0Lluis > > -- > =A0"And it's much the same thing with knowledge, for whenever you learn > =A0something new, the whole world becomes that much richer." > =A0-- The Princess of Pure Reason, as told by Norton Juster in The Phanto= m > =A0Tollbooth > >