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 03:17:50 +0100

> Sent: Saturday, December 12, 2020 at 3:14 AM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: org-capture-templates constructed from three distinct functions
>
> 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...

I wrote bullocks then.

> > (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]