* Capture from terminal command line?
@ 2011-09-29 14:13 Nathan Neff
2011-09-29 17:01 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Neff @ 2011-09-29 14:13 UTC (permalink / raw)
To: emacs-orgmode
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?
Thanks,
--Nate
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Capture from terminal command line?
2011-09-29 14:13 Capture from terminal command line? Nathan Neff
@ 2011-09-29 17:01 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2011-09-29 17:01 UTC (permalink / raw)
To: Nathan Neff; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
Nathan Neff <nathan.neff@gmail.com> 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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: to-emacs.sh --]
[-- Type: text/x-sh, Size: 84 bytes --]
#!/bin/sh
emacsclient -e "(message \"hello from the command line: $(echo "$@") \")"
[-- Attachment #3: Type: text/plain, Size: 165 bytes --]
>
> Thanks,
> --Nate
>
Footnotes:
[1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html
--
Eric Schulte
http://cs.unm.edu/~eschulte/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-29 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 14:13 Capture from terminal command line? Nathan Neff
2011-09-29 17:01 ` Eric Schulte
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).