Re: [O] Macro that calls external program

2019-03-11 Thread John Kitchin
See the variables org-export-before-processing-hook and org-export-before-parsing-hook. You can put something like this in a noexport tagged build heading in your document. Here I run head on the org-file to just get the first three lines. you can replace that with your external filter.:

Re: [O] Macro that calls external program

2019-03-11 Thread Josh
Thanks Ken. Yes, at first I was trying to accomplish my task with Macros, but after finding out that I could run the whole Org file through a pre-filter, I realized that this would be a much cleaner and easier way rather than having multiple types of macros or code blocks. So now I'm trying

Re: [O] Macro that calls external program

2019-03-11 Thread Ken Mankoff
Hi Josh, On 2019-03-10 at 23:37 +0100, Josh wrote... > I am new to emacs and orgmode. I spent the last couple days reading > most of the docs before diving in, Welcome! > but I didn't see anywhere how I could have a macro that instead of > replacing the macro with lisp code, calls an external

Re: [O] Macro that calls external program

2019-03-11 Thread Eric Abrahamsen
Josh writes: > 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

Re: [O] Macro that calls external program

2019-03-11 Thread Josh
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

Re: [O] Macro that calls external program

2019-03-11 Thread Eric S Fraga
On Sunday, 10 Mar 2019 at 15:37, Josh wrote: > 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

[O] Macro that calls external program

2019-03-10 Thread Josh
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