Re: [O] TIL about use of eval in user Org macros.. Documentation?

2017-12-25 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > #+MACRO: sec (eval (concat "" (number-to-string > (org-macro--counter-increment $1 $2)) "")) Or, #+MACRO: sec @@html:@@{{{n($1,$2)}}}@@html:@@ > 1. Can you please document the use of eval form in Org macro definitions in > the Org

Re: [O] TIL about use of eval in user Org macros.. Documentation?

2017-12-22 Thread Samuel Wales
note that this feature overlaps babel: head src_emacs-lisp[]{(shell-command-to-string "git rev-parse HEAD" )}\\ time {{{time(%F)}}}

Re: [O] TIL about use of eval in user Org macros.. Documentation?

2017-12-21 Thread Rasmus
Kaushal Modi writes: > Hello, > > The commit message in this commit is golden: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3ac619c8ac9934a2a1368f3de8ffad951f900067 > > Using that info, I came up with a "classified" version of n macro for > markdown/HTML: > >

[O] TIL about use of eval in user Org macros.. Documentation?

2017-12-20 Thread Kaushal Modi
Hello, The commit message in this commit is golden: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3ac619c8ac9934a2a1368f3de8ffad951f900067 Using that info, I came up with a "classified" version of n macro for markdown/HTML: #+MACRO: sec (eval (concat "" (number-to-string