From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Whipp Subject: org-remember from anywhere Date: Mon, 9 Jul 2012 08:34:41 +1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So03y-00036Z-Qp for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 18:34:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So03w-0003IY-Sn for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 18:34:46 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:48391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So03w-0003IJ-JA for emacs-orgmode@gnu.org; Sun, 08 Jul 2012 18:34:44 -0400 Received: by bkcjc3 with SMTP id jc3so7000915bkc.0 for ; Sun, 08 Jul 2012 15:34:41 -0700 (PDT) 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 Hi there, I've been enjoying org-mode for a good few months now and I love it. I'm using the following versions in both Ubuntu 10.04 on my desktop and 12.04 on my laptop. #+BEGIN_SRC lisp (org-version) Org-mode version 7.8.11 "Org-mode version 7.8.11" (emacs-version) "GNU Emacs 24.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-05-25 on muntries, modified by Debian" #+END_SRC I've recently started using org-remember/capture and its working well although I found the presence of org-remember and org-capture confusing. I have been trying to get the capture working from anywhere using [[http://orgmode.org/worg/org-contrib/org-protocol.html][this guide]] so that it drops the captured note into my misc journal. It works fine when I'm in emacs (which is about 50% of my working time). Here is my setup: #+BEGIN_SRC lisp ;;; Capture setup (org-remember-insinuate) (setq org-directory "~/notes/") (setq org-default-notes-file (concat org-directory "misc.org")) (setq org-remember-default-headline "Incoming") (define-key global-map "\C-cr" 'org-remember) (setq org-remember-templates '(("Todo" ?t "* TODO %^{Title} %u\n%?\n%i\n%a\n"))) ;;; Capture from anywhere (require 'org-protocol) (defun org-protocol-capture (data) ;; Capture (ignore data for now) (org-remember)) (add-to-list 'org-protocol-protocol-alist '("Remember" :protocol "my-org-capture" :function org-protocol-capture)) #+END_SRC (start-server) is called earlier in the setup. I intend to stick the command line invokation onto a hot key combination so I can enter emacs notes from anywhere. (orb-protocol-capture) works in emacs but when I try the command line I get this: #+BEGIN_SRC sh ~ $ emacsclient org-protocol://org-capture// Waiting for Emacs... \*ERROR*: Wrong type argument: stringp, org-capture ~ $ emacsclient org-protocol://org-capture//foo Waiting for Emacs... \*ERROR*: Wrong type argument: stringp, org-capture #+END_SRC What am I doing wrong? Feel free to point me at the right manual or guide. From the notes it looked like this feature might once have been built in. Regards, Paul Whipp Office: 07 3103 2894 Mobile: 0410 545 357 Do more business with your website! Joomla, Python, PHP and MySQL web application developer PS: I usually export the org as html but for some reason the above headed section just did nothing. A separate issue I'll look into sometime but if anyone knows the answer I'd be grateful.