[Top][All Lists]

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

Re: [O] Macro that calls external program

From: Ken Mankoff
Subject: Re: [O] Macro that calls external program
Date: Mon, 11 Mar 2019 20:24:04 +0100
User-agent: mu4e 0.9.18; emacs 25.2.2

Hi Josh,

On 2019-03-10 at 23:37 +0100, Josh <address@hidden> wrote...
> 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"

I do wonder if you're asking an XY problem, especially after reading your 
follow-up question about running an entire Org file through a pre-filter.

Why does it have to be a macro that you call? Why not #+NAME:'d Babel code 
block, which can (presumably) run any program you want.


reply via email to

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