From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: popup org capture window on linux? Date: Fri, 31 Jul 2015 22:51:13 -0400 Message-ID: <87oairafha.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLMtQ-0006e7-NZ for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 22:51:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLMtN-0007Ca-Ik for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 22:51:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:51996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLMtN-0007BC-Bf for emacs-orgmode@gnu.org; Fri, 31 Jul 2015 22:51:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZLMtL-0006O7-KP for emacs-orgmode@gnu.org; Sat, 01 Aug 2015 04:51:19 +0200 Received: from pool-108-20-41-232.bstnma.fios.verizon.net ([108.20.41.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Aug 2015 04:51:19 +0200 Received: from ndokos by pool-108-20-41-232.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Aug 2015 04:51:19 +0200 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: emacs-orgmode@gnu.org Xebar Saram 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 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