Dirk-Jan C. Binnema <djcb.b...@gmail.com> writes:

> Hi,
>
>>>>>> On Fri, 04 Feb 2011 09:19:51 +0000, Eric S Fraga ("ESF") wrote:
>
>   >> Imagine being able to pop open a terminal and type '$ org-todo "call so 
> and
>   >> so on friday" ~/org/task.org' and be done :)
>
>   ESF> I can already do:
>
>   ESF> : emacsclient -e '(org-capture nil "t")'
>
>   ESF> to invoke my todo capture template.  I have not yet figured out if one
>   ESF> could automatically specify the text to go with any particular capture
>   ESF> template, however.  A quick look at the code didn't help me.
>
> What about using org-protocol? If you have a capture template like:
>
>        ("x" "store todo item from command line" entry
>        (file+headline "todo.org" "Tasks")
>        "* TODO %i\n\t%u")
>
> You can use something like:       
>
>    $ emacsclient "org-protocol:/capture:/x/a/b/buy milk"

Yes, this works nicely.  Thanks!

However, it's the first step towards the original specification.  We
want to be able to simply have the note saved -- that is, no interaction
with emacs directly.  Can this be done as well?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.315.g68cf7.dirty)

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to