emacs-orgmode
[Top][All Lists]
Advanced

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

Support for whitespace prefix for :noweb-prefix


From: Doerthous
Subject: Support for whitespace prefix for :noweb-prefix
Date: Tue, 26 Mar 2024 20:44:03 +0800

Hi

Can we add a support for whitespace prefix such that the prefix of a
noweb-ref replaced by whitespace characters?

Here is a use case,

#+begin_src elisp :noweb-ref varable-bindings
(a 0)
(b 1)
#+end_src

#+begin_src elisp :noweb-ref do-something
`(,a ,b)
#+end_src

#+name: a-fragment
#+begin_src elisp :noweb yes :noweb-prefix whitespace
  (let (<<varable-bindings>>)
    <<do-something>>)
#+end_src

using whitespace :noweb-prefix, the above code will expand to

#+begin_src elisp
(let ((a 0)
      (b 1))
  `(,a ,b))
#+end_src

Best regards,

D



reply via email to

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