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

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

Re: org-capture-templates constructed from three distinct functions


From: Christopher Dimech
Subject: Re: org-capture-templates constructed from three distinct functions
Date: Sat, 12 Dec 2020 05:31:15 +0100

I am working on two books now.

(setq tmplt-tdr
  `( ("t" "Tdr Document")  ; backquote construct
     ("t1" "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)

     ("t2" "+ 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) ))

;; ----------------------------------------------------------------------
(setq tmplt-uwdiving
   `( ("d"  "Decompression Theory")  ; backquote construct
      ("da" "Decompression Theory" entry
       (file+headline "~/02histr/uwdiving/decomrth.rcl.org"
                      "Decompression Theory")
       ,(concat "* Decompression Theory\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)

       ("r"  "Recreational Diving")
       ("ra" "Rescue Diver" entry
        (file+headline "~/02histr/uwdiving/rescuedv.rcl.org"
                       " Rescue Diver")
        ,(concat "* TODO\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)  ))

;; ----------------------------------------------------------------------
(defun captr-tmplt-writing ()
   (interactive)
   (message "tmplt-tdr")
   (setq org-capture-templates (tmplt-tdr tmplt-uwdiving) ))

(captr-tmplt-writing)
(global-set-key (kbd "H-c") #'captr-tmplt-writing)



> Sent: Saturday, December 12, 2020 at 4:57 AM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: org-capture-templates constructed from three distinct functions
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > I thought to first append the three lists, then transfer them to
> > org-capture-templates
>
> Sounds ok then, yes.
>
> Michael.
>
>
>



reply via email to

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