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:07:15 +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="36569"; 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:07:57 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 1kiXrJ-0009Ra-9y for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 08:07:57 +0100 Original-Received: from localhost ([::1]:40412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiXrI-00046d-Ci for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 02:07:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiXqi-00046A-QP for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:07:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:38933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiXqg-0003dr-KL for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:07:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606460836; bh=jpB7Pv3ZKZ6fbrVUPONNjDf4YdbtSA6lDuM3P7VEyT0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Ve4UwV9RmPHQr37x9ZIW2U/qUUNw4wkn3kwL8cEH/q8lNR0bRhA7PEhbUv4XPDH4b 6ZaYhou4HIZRjB9G8bUqEU3bNl1mZ6T3zP7wsx4oR3v1s6L2FNPJdj2XyIV5HLxfn7 F2bUXervYABnxQ7rYEJHEjrVrCWDsphE1Scodts0= 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:07:15 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:AadRxuYEgDbmSNVSOOj6wEWscodsur1JNxv6PB2ONo+c+CN6yHUZuvA1i99XaOmpi2LQL w9ItmLNzOyVSCUBD3WKXR144IXgwRQu5WnhGjdyAiyMj/ks4Jc617brAv412Qt9fyMZO7PbmZCdw CUnmGpVTuKbKKwIgO62gOji9lWNDd2uQQpWUd4hVbavULzYnGhhknZSh+Kgrchr8kxbyKiDuheSn 5e8N+J7r83Cv3/HkHPSRq+KWHia6ClAE8fhKvjqOJGY3eWbl6IqPfECuIQyDY8E3jVTi9aJfr2Gq hw= X-UI-Out-Filterresults: notjunk:1;V03:K0:ObeYB4mlHrE=:mZKxEp4cPtIg1M/2w7WZ5r kUJ9eloVbGlvD77rdkHAYabcLswnw3Hz28LANWlERb+y8MamhRJcskm4qqOShe+7Udhq/qcC7 8ilpDZGdd/F2xImtAjm1N7pC1NV8j7tMHTv9SaUwyag1FqAX8xxeQwGA68VJK7o61FdI5u962 6atvq8arBuhW3z2en+viBAOLbk7QDVH+QK7snY/I5cTzAU2rw7qXYj/CyIloUAagtr5EN/rNi 22ngoptEMau+3lreYOxgPe6MeYb9exIQP3ZCIBHe/u3D9AHzn2jNnu4FH4Qvb5cFI56SwC+U0 5qpvbfkVcqzHQbyR7yx4F699/EEB/UV4Hvu8cmipj2+l2LpBu8pwqIz9jEf3FCQkq+geMbakH rTDkwXPsDBEHNCmAK8ZYmK9PuemiY1AzKsaR+piZbj8mpGyY+cEowHGcY7rNY7XB6S3ks4VoC 1qWQ2Q+PbliGhK3JIiJyGryKsX7zOgds+YYYFiemscA7dWEGWrlD6RLWhW20yfSDynKcEQhYM sn+8Kq41rb5FLF/wDHmn7ky5W7VSSDpNAG+vZRGnbXUZnj6VhcIgOBZriRW3yGu2TMxu3Q3Uz 4YGlHMSWgK7Tw= 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:125639 Archived-At: > 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. > (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 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 i= f > >> you let Emacs match parenthesis for you and syntax colour entire > >> expressions between matching parenthesis. > >> > >> > >> > >