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

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

.Re: Org Capture Template


From: daniela-spit
Subject: .Re: Org Capture Template
Date: Fri, 27 Nov 2020 06:51:05 +0100

Have you tried it?  Am still getting "Invalid Capture Template".

> Sent: Friday, November 27, 2020 at 6:34 AM
> From: "Arthur Miller" <arthur.miller@live.com>
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Org Capture Template
>
> daniela-spit@gmx.it writes:
>
> > I am writing an Org Capture Template.  But I want to use concat
> > to keep indentation.  But it is giving me "Invalid capture template".
> >
> > (setq org-capture-templates
> >
> >    '( ("t" "Todo" entry
> >          (file "~/02history/rcl.org")
> >          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
> >                  "Detail: %?\n"
> >                  "Entered: %T\n  Link: %a\n") ))
> >
> >
> > -------
> >
> > (setq org-capture-templates
> >
> >    '( ("t" "Todo" entry
> >          (file "~/02history/rcl.org")
> > "* TODO %^{Heading}\n  Brief: %^{Brief}\n
> > Detail: %?\n
> > Entered: %T\n  Link: %a\n") ))
> >
> > -------
>
> This one works:
>
> (setq org-capture-templates
>
>    '( ("t" "Todo" entry
>          (file "~/02history/rcl.org")
>          (concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
>                  "Detail: %?\n"
>                  "Entered: %T\n  Link: %a\n") )))
>
> I suggest you put this into your init file:
>
> (setq show-paren-style 'expression)
> (show-paren-mode t)
>
> It will be much easier to see when you miss a parenthesis next time if
> you let Emacs match parenthesis for you and syntax colour entire
> expressions between matching parenthesis.
>
>
>



reply via email to

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