emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Capture from terminal command line?


From: Eric Schulte
Subject: Re: [O] Capture from terminal command line?
Date: Thu, 29 Sep 2011 11:01:50 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nathan Neff <address@hidden> writes:

> I'm looking for a way to capture notes from a terminal,
> without having to jump over to emacs.
>
> In the past, I simply append the text from the command line
> to my ~/refile.org file, but if I have emacs running and have a modified
> ~/refile.org buffer, then I run into complications.
>
> I think that a good way would be to have a bash script
> that tells emacs to run one of the org-capture functions,
> along with the newly entered text from the command line.
>
> Can anyone point me to the right function to call?
>

If you have your emacs running a server [1], then you can easily connect
from without using emacsclient.  For example this short shell script
will echo its arguments in your message buffer.

Cheers -- Eric

#!/bin/sh
emacsclient -e "(message \"hello from the command line: $(echo "$@") \")"
>
> Thanks,
> --Nate
>


Footnotes: 
[1]  http://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]