emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-remember from anywhere
@ 2012-07-08 22:34 Paul Whipp
  2012-07-12  8:06 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Whipp @ 2012-07-08 22:34 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-remember from anywhere
  2012-07-08 22:34 org-remember from anywhere Paul Whipp
@ 2012-07-12  8:06 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-07-12  8:06 UTC (permalink / raw)
  To: Paul Whipp; +Cc: emacs-orgmode

Hi Paul,

Paul Whipp <paul.whipp@gmail.com> writes:

> What am I doing wrong?

You are using both `org-remember' and `org-capture'.  
You should use either one or the other.

Please refresh your configuration using `org-capture'
only and report further problems.

org-remember will surely be removed from Org before 8.0.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-12  8:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-08 22:34 org-remember from anywhere Paul Whipp
2012-07-12  8:06 ` Bastien

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).