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: Emanuel Berg
Subject: Re: org-capture-templates constructed from three distinct functions
Date: Sat, 12 Dec 2020 03:14:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech wrote:

> This is how I interpreted your list comment

OK, well, that was just playing with syntax and having fun at
your comment ("backquote construct), but be my guest...

> (setq captr-templ-tdr
>    `(,@(list
>      '("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)

To be honest that doesn't look good. Ha.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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