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: Org Capture Template Date: Fri, 27 Nov 2020 06:51:05 +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="4915"; 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 06:51:40 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 1kiWfT-00019r-UI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 06:51:39 +0100 Original-Received: from localhost ([::1]:35892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiWfS-0001YY-RV for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 00:51:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiWf4-0001YG-Fw for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 00:51:14 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:58075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiWez-00018M-Re for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 00:51:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606456265; bh=DIpSP6wi26J7rDmcPoJp+zy2f/bMsovHQACbtbyqXvY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UrWna0H3gCgXa2HxoP45XYhZ0yPU5AgIPY36H1f0Fa2LejiOZ3xlT6TLta6ZzS+8Q gTdvbWqqeeVgoJYCn8lc0XhOAjIZJK/zdO2GZb4dEMbT0N79H6nlk3jDN13cbtFunO fs7srv560Kz6iD0MjgxXGaQVyz6uE+m9MwYrrbBU= 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 06:51:05 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:+khXMSTziDBKUeZt5AoXWpTPYpOBVR1w/7soiO6GjyTiFr6GTZAbro9pQFUEJyQnNWqt+ FHdYnBU+A070rmSw8QVsb6+MlXjun4+HfbvJTn7x72kqzFxtASC+feZVDhMnC4YUnu3jH6PkUp1f EwwzEsaGOQCmSgNOEix0Lb3lhvkmgH1nNRyO7FBd7brQQZ3nXyaN8v5dWPasZJK1HlXrul6hPnL3 ank8Tr8VK8I8ZQo8CSxVH/UYd0AxOXLNXm1C6XVBIrsyVsbWWRYD6UM61RburWCB78XIl3lP7RjY Ok= X-UI-Out-Filterresults: notjunk:1;V03:K0:ZxSxUbYs91E=:FgkUVoqljqVtj8e7Zrf4KW n8GPHmycp6FT2wqtRczTOL0Z6hQcIZiT18d+oa3se2U5rpStnD722g9VCedGQl4KX5uYM5tf8 3J6CBD0gjHg7glAL0jmKZn8EggRrbBHNAtF+fJ4MNJF1+n4XhVg6dsNi5/8Uw6xYdM8Cvj9pW 3lH1gSLDMB44qIrX66Wr06WXYjzNFUdO3CoiIxi1TRmWFttyvUV28vrtFKU/hSS5FeHFT43FU 6n6Fn9foeZaz8oc0oKhVcxeyGxzARf4+Y2kgcXzdRJXEuGp+b26zerrD6IS43wPckyBNRby8b ApliyBtcon10fk2Z/43EZ01Jdo2eXdERCqTSicjXlZkgv1+AK5aeqW7PHV69t1vAD94TEEgR7 L9ukLER3LbyEvbOip1BaEc8GWCZYOv2tfOPBYDblj6P8doNO31K6c36QdQVq8doOUQTYvvFUm 42/VuIYtWv07mAmISgUdcfUf+mXYd+1lHdX9LPNsRnuv2puCP5zsVRURqYCoJw/YRHgqbA1hh KVyhBKf+HwFNB7c81wkbYYZnyeQKPzU/OyBD39tyShlglbMz/W18eLC8gDqfVvJ+R12h6Sgxj HAFtxKYB9VBsE= Received-SPF: pass client-ip=212.227.15.18; 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:125622 Archived-At: Have you tried it? Am still getting "Invalid Capture Template". > 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 if > you let Emacs match parenthesis for you and syntax colour entire > expressions between matching parenthesis. > > >