Thuna writes:
> Here's a package which allows defining multiline Org macros via
> #+BEGIN_MACRO ... #+END_MACRO: https://git.sr.ht/~thuna/org-multiline-macro
> (I've also attached the elisp file here.)
Thanks for sharing!
> ...
> All thoughts, ideas, suggestions, and bug reports are welcome.
Y
Here's a package which allows defining multiline Org macros via
#+BEGIN_MACRO ... #+END_MACRO: https://git.sr.ht/~thuna/org-multiline-macro
(I've also attached the elisp file here.)
The README should explain it (hopefully) well enough, but I'll also try
explain it here:
- To define a multiline ma
"Berry, Charles" writes:
> ob-org does not provide for variables AFAICS.
I have been trying to advocate for multiline macros for years, because
those are the _only_ thing I am really missing in org, again and
again. For example, right now I am writing teaching material where I
_SRC org :noweb yes
> Currently this gives me ~<><>~ indeed!
> #+END_SRC
>
> Compared to multiline macros, though, having to (re)define bunch of src
> blocks for variables does seem like an overkill.
>
> BTW, does anyone know how I could enforce the standard
> O
>> I am once again facing a situation where I would like to define a
>> multiline org macro.
>
>
> I'm not sure what that means, but based on your example a different
> solution might work for you.
>
> 2. If not, could we have this feature? This would give us
, could we have this feature? This would give us immediate
>multiline macros in the following style, where referring to the value
>of the variable could be done macro-style.
>
> #+HEADER: :var val1=foo
> #+BEGIN_SRC org :var val2=" bar"
> Currently this gives m
, see the reference to
the state of my memory above.
1. Is it now possible to pass variables to these blocks?
2. If not, could we have this feature? This would give us immediate
multiline macros in the following style, where referring to the value
of the variable could be done macro-style