Ramses
06/26/2023, 12:19 PMlarryk2171
06/26/2023, 1:46 PMthemagicalc
08/22/2023, 9:09 AMhttps://cdn.discordapp.com/attachments/760123058513117194/1143472074912964618/image.png▾
themagicalc
08/22/2023, 9:11 AMthemagicalc
08/22/2023, 9:11 AMthemagicalc
08/22/2023, 9:12 AM"foo"
meant to be the name of the macro, and "Hello $1"
is the template?djm2k
08/22/2023, 11:13 AM;; Macros replace texts and will make you more productive.
;; Example usage:
;; Change the :macros value below to:
;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
;; input "{{poem red,blue}}"
;; becomes
;; Rose is red, violet's blue. Life's ordered: Org assists you.
cldwalker
08/22/2023, 12:28 PMthemagicalc
08/22/2023, 9:12 PMthemagicalc
08/22/2023, 9:16 PM:macros
section. Each macro should be enclosed in curly brackets, with two strings enclosed in quotations. The strings should be separated by a space.
- The first string is the macro name, the second is the template. Variables such as $1
and $2
can be used to place the parameters in the template.
clojure
:macros {
{"foo" "Hello $1"}
}
djm2k
08/22/2023, 10:26 PMdjm2k
08/22/2023, 10:27 PMthemagicalc
08/22/2023, 10:31 PMdjm2k
08/22/2023, 10:31 PM:macros
section. Inside the curly brackets, add your macro's name in quotation marks, followed by the text template in quotation marks." would be my recommendationthemagicalc
08/22/2023, 10:31 PMdjm2k
08/22/2023, 10:35 PM:macros {
{"foo" "test $1"}
}
generates an error:
https://cdn.discordapp.com/attachments/760123058513117194/1143674761721950310/image.png▾
themagicalc
08/22/2023, 10:42 PMthemagicalc
08/22/2023, 10:56 PMthemagicalc
08/22/2023, 10:57 PMthemagicalc
08/22/2023, 10:57 PMRikus
11/06/2023, 6:03 PMacsr_armin
11/26/2023, 3:33 PMpatxque
12/16/2023, 6:45 PMblogbourri
03/07/2024, 7:03 PMcldwalker
03/07/2024, 9:41 PMpatxque
03/08/2024, 1:42 AMpatxque
03/08/2024, 2:50 AMLuhmann
04/17/2024, 3:05 AMblogbourri
04/17/2024, 3:17 AM