a...@ufl.edu (Allen S. Rout) writes:

> I'm one of the legion gradually slipping more and more of my day-to-day
> process into org-mode.  (Thanks, Carsten!)
>
> One of the things I'd like to be able to do is capture a new TODO from a
> command line.  e.g.
>
> shell$ capture "Fred wants a new database VM, 60G"
>
> and maybe eventually something obnoxious with e.g. zenity, so that a key
> chord popped up a text dialog which would just seamlessly get fed to
> org-capture.  Basically, I want to make the notation and just keep
> sailing. Of course, I've got the relevant org files open in an emacs on
> another desktop: miles and miles away. :) The obvious solution
>
> shell$ emacsclient -c -e "(org-capture)"
>
> (and maybe a '-t', to keep it in the tty) 
>
> has a problem: when I finish the capture, I'm left with the session, and
> worse, when I try to close the emacsclient, (C-x #) it tells me "No
> server buffers remain to edit", and I have to M-x delete-frame.
> Harshing my buzz, definitely.

I tried the following:

: $ emacsclient -t -e "(progn (org-capture) (delete-frame))"

which /sort of/ works: it brings up capture, allows me to type in
various bits of the capture template (like headline and tags, if
requested) but then quits immediately (and deletes the frame) when org
is supposed to give me a chance to add to the entry I have created.

So this is a halfway point to a solution to your problem maybe?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.78.g9b811)

_______________________________________________
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