[Top][All Lists]

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

Re: [O] Macro that calls external program

From: Josh
Subject: Re: [O] Macro that calls external program
Date: Mon, 11 Mar 2019 04:19:47 -0700 (PDT)
User-agent: Alpine 2.21 (LRH 202 2017-01-01)

Thanks! This is very helpful.

I have a related question. How can I run an external program right before Export that takes as input the current buffer and prints out to stdout an updated version of the org file that then is exported? Basically I want to pipe the org file through a filter that is an external program before it is exported.

Thanks in advance!


On Sunday, 10 Mar 2019 at 15:37, Josh 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

You could maybe do something along the lines of

#+macro: func (eval (shell-command (concat "/home/josh/mybinary " "$1")))


Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a

reply via email to

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