From mboxrd@z Thu Jan 1 00:00:00 1970 From: "tenspd137 ." Subject: Dynamically creating capture mode templates Date: Fri, 9 Oct 2015 12:34:07 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkcUa-0001Rj-S9 for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 14:34:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkcUZ-0006VG-Ur for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 14:34:08 -0400 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:33489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkcUZ-0006V6-Q7 for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 14:34:07 -0400 Received: by iofh134 with SMTP id h134so99851050iof.0 for ; Fri, 09 Oct 2015 11:34:07 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all - I was hoping someone could help me figure this out. I have the following in a .el file I am loading to create keys for my projects: (setq projects '("Aa" "Bb" "Cc" "Dd") (let (firstLetter) (dolist (project projects firstLetter) (setq firstLetter (substring project 0 1)) (message "%s" firstLetter) (setq org-capture-templates (append org-capture-templates '((firstLetter project) ((concat firstLetter "t") "Todo" entry (file+headline (concat org-directory "/default.org") project) "* TODO %?")))))) C-n (to activate capture mode) org-mks: Wrong type argument: sequencep, firstLetter but in the messages window, it prints the firstLetter variable - shouldn't firstLetter be a string or char? Anyway, I can't seem to get this to work - could anyone give me some insight as to what I am missing? Thanks!