From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: .Re: Org Capture Template Date: Fri, 27 Nov 2020 08:48:50 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 08:50:03 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kiYW3-0002rP-QK for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 08:50:03 +0100 Original-Received: from localhost ([::1]:49730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiYW2-0007PI-PU for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 02:50:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiYUy-0007O0-Oz for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:48:56 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:33561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiYUw-0001xX-Of for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:48:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606463330; bh=DxqJg5rPc6CQGxzUPPxMDyiCbBqPL/BnFxs3l+N6vgg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=NXe9qJ8oFUddE6CHe8bB+58BOdgO0G6KTfOq2ekELrjr7phK9qWLYDmK11mWpycGj ArmG+n8diQ5un86TR6mM12QNfZ/XmmfUX/eXTLpJbiTHm2qgWASkg4IV0thjHkrS5P 9JWsuyxzFqqzCKh5Lo3amytp3qugYTiuiXvJQ3Qc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Fri, 27 Nov 2020 08:48:50 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hb+uK1I7d+KlNDDfs5nTtjGDU8NSezepg3f/KrqeK1mui27a4z5mFhIBmlsB0Upb5zbxG EsYdYQ2DEGXCDeXtiprCH+83FGtmIcsLiXDRVuZN1MQs9ljTcp4/i2xMh6dyzlvitBQALX9WdYf3 iuMQyZqoeHcw6KhQhnxVlSC9axSpkYQ8OozXmb5kvoDQv0pKN5wRA9mjjS1Lxe1Bt6BRZ/acAKws DMOEJM2IbsR5GJZnkjVLXn9MW8DxFpfiifDREx9liZj3a8gIN5jYTt2SldD08acK1PL7nDX+ifTY +8= X-UI-Out-Filterresults: notjunk:1;V03:K0:vVPC3ejLslg=:8/0JkbQATq+uPYFtWFKXyW NtroNlXi/Sx/GDd93ewTFziDcCv8d14ms5hW9FyorBHN0TL+PJ+qbEHn4waP3IjJduyspA9kM BLFDpUZ+YQlJcIjjYMuN/yGofUqsNfoDIRQkDyjcLtNtxjBAFZWVNSR5ttOy794rD0D1LoyNF B8gabZqZJTeX5Bm2p0xqbswA1EL8q5s2+1ghwJiVaISA44736vqpQebXMeKZloFCjeDGWhRdM winwCAW0Q8G+FREdbBvt0W98OAGJ74vszGVordsJhnIr2LBazS4bvYeRw+T7s0OryPggio35Q wojJVnngWWIRahQ1cVUXcXUBhfPhH7uC4XlfDwsrQot6MdHbkWGizyokk0Uee7xezjIHRuZRx hRv2ZyQY3DiyYPukuIUrhEeaDXKFPzSiC/SkGNiTa26UBpONfi+X4hXX7LvDH3wqWnbMODGpC +WhW1qcwE44lViZjNlw8LZ7cV4+OlI0ZWVtx7cJYLUA0xbotLlKEvhzD1jVeVsCvRyR0Rd+y2 Ckdpa5AquVrRc7rEW1zfTMSJxyQ9eMhujxHTq9lzb/IVWdI3mnwa9BLdpnbkJWzDOh0F93QHc 21d95dUXsOItw= Received-SPF: pass client-ip=212.227.17.21; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125647 Archived-At: > Sent: Friday, November 27, 2020 at 8:27 AM > From: "Arthur Miller" > To: daniela-spit@gmx.it > Cc: "Help Gnu Emacs" > Subject: Re: .Re: Org Capture Template > > daniela-spit@gmx.it writes: > > >> Sent: Friday, November 27, 2020 at 7:51 AM > >> From: "Arthur Miller" > >> To: daniela-spit@gmx.it > >> Cc: "Help Gnu Emacs" > >> 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. You mean the second one I wrote? Yes that worked. So will continue doing= that way. > 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" > >> >> To: daniela-spit@gmx.it > >> >> Cc: "Help Gnu Emacs" > >> >> 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 templ= ate". > >> >> > > >> >> > (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 tim= e if > >> >> you let Emacs match parenthesis for you and syntax colour entire > >> >> expressions between matching parenthesis. > >> >> > >> >> > >> >> > >> > >> >