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

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

Re: .Re: Org Capture Template


From: Arthur Miller
Subject: Re: .Re: Org Capture Template
Date: Fri, 27 Nov 2020 07:51:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

daniela-spit@gmx.it writes:

> Have you tried it?  Am still getting "Invalid Capture Template".
Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't
even looking at it; I am sorry:

(setq org-capture-templates

   `( ("t" "Todo" entry
       (file "~/Dokument/notes.org")
         ,(concat "* TODO %^{Heading}\n  Brief: %^{Brief}\n"
                 "Detail: %?\n"
                 "Entered: %T\n  Link: %a\n") )))



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