Xebar Saram <[email protected]> writes:

> Hi. it seems like this :
>
> /usr/bin/emacsclient -c -e '(org-capture)' 
>
> kinda works with the most annoying issue is that the window dosent close 
> after cpature (which is what i want). instead i get a previous buffer in 
> emacs. any idea how to solve that?
>

You can add a binding to org-capture-mode-map (tha map that is used to
implement the C-c C-c etc behavior in the capture buffer) to a function
that calls org-capture-finalize and then calls delete-frame.

Something like this added to your .emacs should work (but it's very
lightly tested):

--8<---------------cut here---------------start------------->8---
(require 'org-capture)
(defun my-capture-finalize ()
  (interactive)
  (org-capture-finalize)
  (delete-frame))

(add-hook 'org-capture-mode-hook
          (lambda ()
            (define-key org-capture-mode-map "\C-c\C-x" (function 
my-capture-finalize))))
--8<---------------cut here---------------end--------------->8---

>
> On Fri, Jul 31, 2015 at 9:19 PM, Xebar Saram <[email protected]> wrote:
>
>     Hi all. anyone using a separate (or pop up style) org capture window on 
> linux? im looking for tips on how to bind a key that will bring up a new 
> emacsclient quickly with the
>     capture window open for quick capturing of info even when not in emacs
>    
>     best!
>    
>     Z
>

-- 
Nick


Reply via email to