From: Josh <jnfo-d@grauman.com>
To: emacs-orgmode@gnu.org
Subject: Macro that calls external program
Date: Sun, 10 Mar 2019 15:37:52 -0700 (PDT) [thread overview]
Message-ID: <alpine.LRH.2.21.1903101524020.23107@colo.shuman.org> (raw)
Hi,
I am new to emacs and orgmode. I spent the last couple days reading most
of the docs before diving in, but I didn't see anywhere how I could have a
macro that instead of replacing the macro with lisp code, calls an
external program instead.
Something like:
#+MACRO: func call /home/josh/mybinary $1
{{{func(Text Argument)}}}
and this would be setup to call an external program and the output of the
program would replace the macro on export.
/home/josh/mybinary "Text Argument"
Thanks!
Josh
next reply other threads:[~2019-03-11 5:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-10 22:37 Josh [this message]
2019-03-11 7:46 ` Macro that calls external program Eric S Fraga
2019-03-11 11:19 ` Josh
2019-03-11 19:03 ` Eric Abrahamsen
2019-03-11 20:48 ` John Kitchin
2019-03-11 19:24 ` Ken Mankoff
2019-03-11 13:28 ` Josh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LRH.2.21.1903101524020.23107@colo.shuman.org \
--to=jnfo-d@grauman.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).