From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [ANN] Firefox extension for org-protocol and org-capture Date: Sat, 22 Feb 2014 19:48:38 +0100 Message-ID: References: <20140221140611.GA16629@ssejan.supelec.fr> <87eh2w320f.fsf@gmx.us> <20140221164144.GB16629@ssejan.supelec.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHHjO-0005Z4-PN for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 13:55:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHHjI-00060F-1L for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 13:55:22 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:40218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHHjH-0005zj-R7 for emacs-orgmode@gnu.org; Sat, 22 Feb 2014 13:55:15 -0500 In-Reply-To: (Xebar Saram's message of "Fri, 21 Feb 2014 19:06:11 +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: Xebar Saram Cc: org mode Xebar Saram writes: > one thing though, is there a way to define which client it oepns? i have > several emacs client opened at once and prefer the extension nowt to use > a current one but pop up a new CLI emacsclient for quick adding which > will go away after i finish capturing, is that possible? I have a shell script bound to a key here to allow capture everywhere. It's like this: #+begin_src sh /usr/local/bin/emacsclient -n -e '(make-orgcapture-frame)' #+end_src The function is as follows (I also include my capture settings, which are relevant here): #+BEGIN_SRC emacs-lisp (setq org-capture-templates (quote (("t" "todo" entry (file "refile-orgx.org") "* TODO %?\n %U") ("T" "todo with link" entry (file "refile-orgx.org") "* TODO %?\n %U\n\n%a")))) (define-key global-map "\C-cr" 'org-capture) ;; to be called from outside using ;; emacsclient -n -e '(make-orgcapture-frame)' (defun make-orgcapture-frame () "Create a new frame and run org-capture." (interactive) (make-frame '((name . "remember") (width . 80) (height . 16) (top . 400) (left . 300) (font . "-*-Consolas-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1") )) (select-frame-by-name "remember") (delete-other-windows) (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf))) (org-capture nil "t"))) ;; delete the frame in that case (add-hook 'org-capture-after-finalize-hook (lambda () (when (equal (cdr (assoc 'name (frame-parameters (selected-frame)))) "remember") (delete-frame)))) #+END_SRC Maybe you can adapt this for this firefox plugin. Alan