From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Org Capture Template Date: Fri, 27 Nov 2020 06:34:45 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs To: daniela-spit@gmx.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 06:35:22 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 1kiWPh-0004od-IJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 06:35:21 +0100 Original-Received: from localhost ([::1]:52758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiWPg-0004CO-Jj for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 00:35:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiWPH-0004C1-QT for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 00:34:55 -0500 Original-Received: from mail-oln040092075106.outbound.protection.outlook.com ([40.92.75.106]:17298 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiWPD-0003Oj-OR for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 00:34:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iqnfERXf8/vWQQz9E5F/9iBPT4MboN3/VDAuB+S8kDhxI1lPXOTzJgdYOjEWKG9a/yQsJ4rl9m/2LtjH5ryFi4pHyeJC6mhFkaQZ2DC0TL+qW8SSIhyMMvZaYHY2e09hGC6pDl3dXPLYWjAiSjyECaVnU7ykPMeHAa+F6sv5SSWhHb2CB09wun+nHriBU9MPVMjGz79DK5rH1JPFOaxsxfl4BGukRzm69VGDIcRj87HBREgoBR/6+crhuTHJCeZSZLY1DymS1sG9z9Abl/FmPJAcH04DlEFtd12qEmgit8YBFDdGAX0Xc9qdsRv7bujlXcsOM7B7SWH21HzhdwAyRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rSXCbZ7EVZTOBwC3dwoTdwMNX3i9zv1wnzXCSO68HoU=; b=QXxLGQa5gU6ZGk/LXOyXEZECtg3lXapkD+6hSppc9laMxVvnLrAoRHChDzPOufJ0snzIK9AjOqbEvA+SU5T+j0me0sWvp21+todfh78akjzPsW400c2vdLRXUfO4HAsG+NWn0oAFzsa3dYnx/K0uAbqXMDfyAIM9aOVK6CULam+SVd9OIr4oqyAwyB/QmQSpCYXfakceeA3v/T+AHCDBO4mypceZ9/9Vxq6unI7zWgtcI2GuWHpNRIs4om5CTuSha2V6+Vi4pu+FkuoAN6/OjtGXXzBqK8c28hnCwH988yD/5tRuak/89HE4hPhJtLZEWGmPllfM0GJcPHSkW4VhEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rSXCbZ7EVZTOBwC3dwoTdwMNX3i9zv1wnzXCSO68HoU=; b=qemJ/Q/E1SMvjsgrni5+I1bX3QPNpZne52QHaGS+fZYLWPl0M86jfOe57h2FitfTJFdPV2N9eQL5U958ZtsYm+ys+xy3q2kTBglX5BZkzvfHN3cLaHQMDntwCHapJYQQX+smz0+/qeJSsGBEUD+9hfC/5stGHOvp2QFRtPi1t5OXRnmBzA6n6olG2GnczmW/ETtZRyD1MMiW9TlHmouPUF2LeN4uLJ9qvxHB0UdQ+BClWYOmACP4WUjiBjghzI9sFfzhL9O/UfL3dVuccRbQ01kALYylDM1cr+Ek4MYMJOQ5qs+eJrHXKmrg8Dk1QLzCRhltGrNhwt3eY9bCUXSWkA== Original-Received: from DB3EUR04FT054.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::43) by DB3EUR04HT203.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23; Fri, 27 Nov 2020 05:34:48 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e0c::42) by DB3EUR04FT054.mail.protection.outlook.com (2a01:111:e400:7e0c::100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23 via Frontend Transport; Fri, 27 Nov 2020 05:34:48 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1DC5A1D23691436D3AB5469622671819823BAB8CCF58FCA4F002BA1782E8A9AC; UpperCasedChecksum:622A71C8CC0ACD5AB0DAD1357E28A3A3F7814D0A53165F9FA1C609211AA938A5; SizeAsReceived:7486; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3611.025; Fri, 27 Nov 2020 05:34:48 +0000 In-Reply-To: (daniela-spit@gmx.it's message of "Fri, 27 Nov 2020 05:46:51 +0100") X-TMN: [2A3xFo6usE38zWQjUk2eqLUTvo0DE2bk] X-ClientProxiedBy: AM6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::17) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <874klb5pmy.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM6PR01CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20 via Frontend Transport; Fri, 27 Nov 2020 05:34:47 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1c72674e-fabc-4be5-8998-08d89296274c X-MS-TrafficTypeDiagnostic: DB3EUR04HT203: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5ue10oa8uo7rMnlPZv/6o5GFAiDimuPPMcnyYw6bvKo6myhkL57Vive0UQXJLJguC85J9biU+CP9mgpcnUe4xa4ocBGABIzFGbOfksYCJpB4l0etQy5/9YRLPDrqJ2gYE2fvN2RFv5lBSbOM7JPNFBT/ohNQpMQh9Tm/jj3bPto4t/+txNkNhavjwo8mG89d5gAtfiZM9fWBtuQSvfD8ew== X-MS-Exchange-AntiSpam-MessageData: cWX95FAg8EzYh1dCAu8bR6sNxtSeS3564lrl3e4hMhC96YSuVXAk1om6JuuqLdYpkzUVIimYwnbDKbw19tnJ+vomj3V7RoLd5QTmBKj9d8EofPYSUyKJCvvTYTjZKXq7fNuHeOXbscLbM7s5ft64zg== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c72674e-fabc-4be5-8998-08d89296274c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2020 05:34:48.8851 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT054.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT203 Received-SPF: pass client-ip=40.92.75.106; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:125619 Archived-At: 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.