Re: Multiline Macros

2024-11-03 Thread Ihor Radchenko
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

Multiline Macros

2024-08-26 Thread Thuna
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

Re: [O] Org src blocks and multiline macros

2018-08-02 Thread Jarmo Hurri
"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

Re: [O] Org src blocks and multiline macros

2018-08-02 Thread Berry, Charles
_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

Re: [O] Org src blocks and multiline macros

2018-08-02 Thread Jarmo Hurri
>> 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

Re: [O] Org src blocks and multiline macros

2018-08-02 Thread Kaushal Modi
, 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

[O] Org src blocks and multiline macros

2018-08-01 Thread Jarmo Hurri
, 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