Re: [O] org-capture-hook only when in frame?

2011-09-20 Thread Micah Anderson
Micah Anderson writes: > > (defadvice capture-finalize (after delete-capture-frame activate) > "Advise capture-finalize to close the frame if it is the capture frame" > (if (equal "capture" (frame-parameter nil 'name)) > (delete-frame))) > > (defadvice capture-destroy (after delete-capt

Re: [O] org-capture-hook only when in frame?

2011-09-20 Thread Micah Anderson
Tom Prince writes: > 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 ()

Re: [O] org-capture-hook only when in frame?

2011-09-20 Thread Tom Prince
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 ru

[O] org-capture-hook only when in frame?

2011-09-20 Thread Micah Anderson
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))) (selec