emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: popup org capture window on linux?
Date: Fri, 31 Jul 2015 22:51:13 -0400	[thread overview]
Message-ID: <87oairafha.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CAOQHXPqcaqz8uNt0paUjAmt7_zyKCAMj7UmppWkN297m-_q+xQ@mail.gmail.com

Xebar Saram <zeltakc@gmail.com> 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 <zeltakc@gmail.com> 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

  parent reply	other threads:[~2015-08-01  2:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31 18:19 popup org capture window on linux? Xebar Saram
2015-07-31 18:42 ` Xebar Saram
2015-07-31 18:50   ` Ken Mankoff
2015-07-31 19:29   ` Haider Rizvi
2015-08-01  2:51   ` Nick Dokos [this message]
2015-07-31 19:32 ` Josiah Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oairafha.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).