help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

org-capture-templates constructed from three distinct functions


From: Christopher Dimech
Subject: org-capture-templates constructed from three distinct functions
Date: Sat, 12 Dec 2020 02:14:38 +0100

I am writing an org capture template for a book.  I would like a different 
function
for each book, suppose I have three (Book A, Book B, Book C).  Selecting either 
A,
B, and C, I can then te to the respective entries for each book.

Can using three different functions be done to make org-capture templates?


(defun captr-writing ()

  (setq org-capture-templates
   `(("A" "Book A")  ; backquote construct
     ("A1" "Tdr: Ch01 Oceanic Microseismology" entry
        (file+headline "~/02histr/tdr/01ch.rcl.org" "Tdr Document")
        ,(concat "* Oceanic Microseismology\n"  ; special marker
           "  %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n"
           "  Scheduled: %^T\n  Entered: %T\n  Link: %a\n")
        :clock-in t :clock-resume t :empty-lines 1)

     ("A2" "+ Ch02 Multi-Resolution Spectral Analysis" entry
        (file+headline "~/02histr/tdr/02ch.rcl.org" "Tdr Document")
        ,(concat "* Ch02 Multi-Resoln Spectr Anly\n"
           "  %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n"
           "  Scheduled: %^T\n  Entered: %T\n  Link: %a\n")
        :clock-in t :clock-resume t :empty-lines 1) )))

Thank you
C*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]