emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple capture templates in file
@ 2015-10-06 19:35 tenspd137 .
  2015-10-06 20:38 ` Marco Wahl
  0 siblings, 1 reply; 7+ messages in thread
From: tenspd137 . @ 2015-10-06 19:35 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi all,

I am trying to figure out how to store multiple capture templates in a
file, have several files of related templates, and then load all the
files stored in a directory.  For example, lets say I have two
projects at work WorkProject1 and WorkProject2.  Then I have two files
in a directory org-templates called WorkProj1Templates.el and
WorkTemplates2.el.  How can I append the templates in these files to
or capture templates?  In my main .emacs, I have:

(setq org-capture-templates
      '(("t" "Todo" entry (file+headline (concat org-directory
"/default.org") "Tasks")
         "* TODO %?")
        ("j" "Journal" entry (file+datetree (concat org-directory
"/journal.org"))
         "* %?\nEntered on %U\n")))

I would like to then load the template files in org-templates.  That
way, when a project ends, I can just yank the templates.  I have
experimentally tried using add-to-list with org-capture-templates
without success.  Either that can't be done or my syntax was wrong?

Does anyone have any ideas?

Another idea is that I could just have templates that take a
parameter.  I have found how to do this out on the web.

Any suggestions on which would be easier?

Thanks!

-C

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-07  6:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-06 19:35 Multiple capture templates in file tenspd137 .
2015-10-06 20:38 ` Marco Wahl
2015-10-06 21:01   ` Subhan Michael Tindall
2015-10-06 21:15   ` tenspd137 .
2015-10-06 23:43   ` tenspd137 .
2015-10-07  0:45     ` tenspd137 .
2015-10-07  6:45       ` tenspd137 .

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).