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 04:24:04 +0100

> Sent: Saturday, December 12, 2020 at 4:16 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:
>
> > Can using three different functions be done to make org-capture
> > templates?
>
> I had to think long about what this question wants to ask.
>
> I guess you want to know how you can add more templates without
> overwriting the existing (partly filled) list of templates?

I want to write ideas for three books say, and could have the template list
for each book in either a function or a variable.  Then append the three at
the end.

Have been trying as follows with just on book for now, but have not been
successful.


(setq captr-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) ))

;; ----------------------------------------------------------------------
(defun captr-tdr ()
   (interactive)
   (setq org-capture-templates 'captr-templ-tdr))

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



> Michael.
>
>
>



reply via email to

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