[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] popup org capture window on linux?
From: |
Nick Dokos |
Subject: |
Re: [O] popup org capture window on linux? |
Date: |
Fri, 31 Jul 2015 22:51:13 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Xebar Saram <address@hidden> 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 <address@hidden> 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