emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Paul Whipp <paul.whipp@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-remember from anywhere
Date: Mon, 9 Jul 2012 08:34:41 +1000	[thread overview]
Message-ID: <CAMAB+Pp_5uShOdHE=8zH5yJ2zV4EDMzB4XWAgBhCewBrZf1qmw@mail.gmail.com> (raw)

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.

             reply	other threads:[~2012-07-08 22:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 22:34 Paul Whipp [this message]
2012-07-12  8:06 ` org-remember from anywhere Bastien

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='CAMAB+Pp_5uShOdHE=8zH5yJ2zV4EDMzB4XWAgBhCewBrZf1qmw@mail.gmail.com' \
    --to=paul.whipp@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).