From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: How to get a list of all TODO keywords from defined variable `org-todo-keywords`? Date: Thu, 4 Jan 2018 09:22:18 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114774a48332de0561e92b9f" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWuF9-00056y-4M for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 20:22:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWuF8-0000PJ-0W for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 20:22:51 -0500 Received: from mail-ot0-x234.google.com ([2607:f8b0:4003:c0f::234]:42369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWuF7-0000OR-S1 for emacs-orgmode@gnu.org; Wed, 03 Jan 2018 20:22:49 -0500 Received: by mail-ot0-x234.google.com with SMTP id d2so110196oth.9 for ; Wed, 03 Jan 2018 17:22:49 -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 --001a114774a48332de0561e92b9f Content-Type: text/plain; charset="UTF-8" I'm trying to select TODO keyword when doing org-capture. Like this: (setq org-capture-templates '(("c" "[C]apture" entry (file "") ;; HACK: select todo keyword interactively from `org-todo-keywords'. ;; 1. command `org-todo' "* %(completing-read \"Todo keyword: \" (mapcar #'list org-todo-keywords-1) nil t) %^{Capture}\n\n%i\n%a\n\n%?" :prepend t :empty-lines 1 ) ... )) But it is not working as I expected. I borrow this snippet code from command `org-todo`. hope someone can provide a good solution for my purpose. [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/ --001a114774a48332de0561e92b9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm trying to select TODO keyword when doing org-capture.

Like this:
    (setq org-capture-templates
    '(("c" "[C]apture"
    entry (file "")
    ;; HACK: select todo keyword interactively from `org-todo-keywords'=
.
    ;; 1. command `org-todo'
    "* %(completing-read \"Todo keyword: \" (mapcar #'li=
st org-todo-keywords-1) nil t) %^{Capture}\n\n%i\n%a\n\n%?"
    :prepend t
    :empty-lines 1
    )
    ...
    ))
  
But it is not working as I expected. I borrow this snippet code from comm= and `org-todo`.

hope someone can provide a good solution for= my purpose.


= [stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &= lt;Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433<= br>IRC(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 Tw= itter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2= =A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
--001a114774a48332de0561e92b9f--