From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: How to apply function on org-capture template substitute variable %i? Date: Sun, 14 Jan 2018 11:59:07 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f40304352eb4beb1f90562b486aa" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaZSO-00059q-Pf for emacs-orgmode@gnu.org; Sat, 13 Jan 2018 22:59:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaZSN-00020T-K3 for emacs-orgmode@gnu.org; Sat, 13 Jan 2018 22:59:40 -0500 Received: from mail-ot0-x22d.google.com ([2607:f8b0:4003:c0f::22d]:34262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaZSN-0001zt-Dz for emacs-orgmode@gnu.org; Sat, 13 Jan 2018 22:59:39 -0500 Received: by mail-ot0-x22d.google.com with SMTP id p16so8180585otf.1 for ; Sat, 13 Jan 2018 19:59:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --f40304352eb4beb1f90562b486aa Content-Type: text/plain; charset="UTF-8" I have a org-capture template like this: ``` (setq org-capture-templates (append '(("w" "org-drill [w]ords" entry (file my-org-drill-words-file) "* %i :drill: :PROPERTIES: :DRILL_CARD_TYPE: %^{Drill Difficulty|simple|twosided|multisided|hide1cloze} :END: %? %c " :empty-lines 1 )) org-capture-templates)) ``` I want to apply a function on `%i` to make it lowercase. Like `(lowercase %i)` ? [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --f40304352eb4beb1f90562b486aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a org-capture template like this:
```
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif">(= setq org-capture-templates
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (a= ppend '(("w" "org-drill [w]ords"
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 entry (file my-org-drill-words-file)
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 "* %i :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: = %^{Drill Difficulty|simple|twosided|multisided|hide1cloze}
:END:

= %?

%c
"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :empty-lines 1=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ))
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-capture= -templates))
```
I want to apply a function on `%i` to make it lo= wercase.
Like `(lowercase %i)` ?

[sta= rdiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <H= ack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
I= RC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:= =C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB9= 9 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
--f40304352eb4beb1f90562b486aa--