all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: daniela-spit@gmx.it
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: .Re: Org Capture Template
Date: Fri, 27 Nov 2020 08:27:25 +0100	[thread overview]
Message-ID: <AM0PR06MB6577D9B6CD88FB3DB5A4207696F80@AM0PR06MB6577.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <trinity-f25b7a20-9692-4136-8ab9-fdbae6d076a1-1606460835886@3c-app-mailcom-bs02> (daniela-spit@gmx.it's message of "Fri, 27 Nov 2020 08:07:15 +0100")

daniela-spit@gmx.it writes:

>> Sent: Friday, November 27, 2020 at 7:51 AM
>> From: "Arthur Miller" <arthur.miller@live.com>
>> To: daniela-spit@gmx.it
>> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
>> Subject: Re: .Re: Org Capture Template
>>
>> 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:
>
> If you were doing it for the glory, it backfired.

Which? No; I saw it was missing the ending parenthesis;

The second one works; i tried it.

And yes, it is because of evaluation as Jean told you.

>> (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	other threads:[~2020-11-27  7:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27  4:46 Org Capture Template daniela-spit
2020-11-27  5:34 ` Arthur Miller
2020-11-27  5:51   ` .Re: " daniela-spit
2020-11-27  6:51     ` Arthur Miller
2020-11-27  7:07       ` daniela-spit
2020-11-27  7:27         ` Arthur Miller [this message]
2020-11-27  7:48           ` daniela-spit
2020-11-27  8:55             ` Arthur Miller
2020-11-27  9:31               ` daniela-spit
2020-11-27 10:32                 ` daniela-spit
2020-11-27 16:49                   ` Arthur Miller
2020-11-27 17:46                     ` daniela-spit
2020-11-27 19:52                     ` daniela-spit
2020-11-27 21:03                       ` Arthur Miller
2020-11-27  5:53 ` Jean Louis
2020-11-27  6:13   ` daniela-spit
2020-11-27  6:30     ` Jean Louis
2020-11-27  6:43       ` daniela-spit
2020-11-27 21:03     ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR06MB6577D9B6CD88FB3DB5A4207696F80@AM0PR06MB6577.eurprd06.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=daniela-spit@gmx.it \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.