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: .Re: Org Capture Template Date: Fri, 27 Nov 2020 07:51:54 +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="12183"; 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 07:52:33 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 1kiXcP-00034y-Cm for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 07:52:33 +0100 Original-Received: from localhost ([::1]:35394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiXcO-0000mg-Dd for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 01:52:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiXby-0000mN-EK for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:52:07 -0500 Original-Received: from mail-oln040092075010.outbound.protection.outlook.com ([40.92.75.10]:26884 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 1kiXbr-0006Wg-Fd for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:52:05 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AtlFhsP2R/QO0Q2HBCUaDKOej3ofCx50CzsQ9csC8gjkZSLE+DGw6u1uAVpuwaf44pG/Uc1F7MSVA76/9coMU/oidnHQeqFhqTqZwf9MRfcRdhYmnjVxh4RRnM+hfXqTpkSCS7OoPlSXtt8C9RyT51lOLpbvwngai1PdJ2fOszW5F93kYGM3zqiyFOzB4/cowfZ8FskpuDYirZjrIeJfgZINRM1FJPx7mx404VNp37aHoqPYd/2dtToMTNN2r5g1L/FQnqgLjtIXGeu9krEtttnlAmsr9Ct5JXP6bYg1+g4d746kx01RlBm2r2Y3HlZUk/OZ74bzQx558T/M23MDbA== 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=4H1MY+Dy6W/FcDhIpaECG6TzgeZvU3EcSPTfkitLHVo=; b=GVSFYEoOR1ih5MGKITPydEGIZseBZE6YDkLkfkJf8oXS5Yz4I+VWYA7GKKob+nugEMDsS0tOKTtlyq1LQekjR1Di/qOVNU99yN1m7ymZtfdzwHBXK6DWNMPuncRzeED6iJdSqRGNx8bKuO79q8GlUGxYcFd+cEx5Z2isF5BN2effTWyEiSjtM/Y4czGavNwAFyAchy4YTkS5q/u3DW6e9ND1mFVyYoEze9fXnEOgDFvbVO8fd4FbNHxUfLkcA83H8WHPDBcWDfjBP6/8eqJUbQoIv7oqwcegTTJ/ij/3vEt+0pbwrEkrKtiveQEaZVmfOYls1WH1inuw62Sivhf+yw== 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=4H1MY+Dy6W/FcDhIpaECG6TzgeZvU3EcSPTfkitLHVo=; b=WolX+A/CVRnnimkyv3J1mmEpIiDomRej2uzV0Ey0dO7CYHyAkkv/QCwa5exdDrk5ZXGdORRGX4WLrZgjMCy32wLqM073an+sL4P1CnhSwxZAWTf19ujslh1aeW81Aw5uS6Nx+qT3z9L6qOpCyU3s45yQft5Hl5aGGZbn4uxF8VDxZ2Pa1Kdp2fIuQlt29U4yK3bCIi8VHkEeQYYkPcCqh22iOVyRDzK9WCvl7/RyrR03L4+ia2lMOtEOZcos9hAIsWcDxEJHO2tQJb6E8388Df/VUUl6naoVpx/fA7B2MHBOZkPKVrlJjYnzD/3+S2qj8kQgYUzADHvUwcDS8mk1Jg== Original-Received: from VI1EUR04FT019.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::48) by VI1EUR04HT120.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::155) 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 06:51:56 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:7e0e::48) by VI1EUR04FT019.mail.protection.outlook.com (2a01:111:e400:7e0e::251) 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 06:51:56 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:CF7D73005B0BE8D96D396F6377DE71A211BB2BD933925580C50A5466C3D25C26; UpperCasedChecksum:EC770BFC238497BAC0F6D61956A44626CEA5C8C9E1D060D9A84502281707E263; SizeAsReceived:7651; 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 06:51:56 +0000 In-Reply-To: (daniela-spit@gmx.it's message of "Fri, 27 Nov 2020 06:51:05 +0100") X-TMN: [MxjKos9zZK4Kjp9Ll4syhX4Vmh9XZ1ts] X-ClientProxiedBy: AS8PR04CA0023.eurprd04.prod.outlook.com (2603:10a6:20b:310::28) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87im9r47hx.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AS8PR04CA0023.eurprd04.prod.outlook.com (2603:10a6:20b:310::28) 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 06:51:55 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e29207ea-c196-4372-d0b3-08d892a0ede3 X-MS-TrafficTypeDiagnostic: VI1EUR04HT120: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Enx35eer5QXOZSo33VsZjhJGkGdPUvd1yMOIcv/jQjWvECuC2mbxTQKneODvGi2i6q0SnvU+DNy9A44UKjRH+PSWrjKQ/gQx8qqBqKAbpKDBwKK1mJN+CUT5qe+5cdSwDkb/oDicLFpmgYuvaY69dsyTkA/vDiQ/W+VVpGUe0CvPGbmMkQMyKF/fctYus41agFzSaRpo1V+48j+6FSnfig== X-MS-Exchange-AntiSpam-MessageData: QKZEyllc1jVaY3QdPs6QbNZSDwfQEcYEomlMpXY76DTbDZEt//Og81OWjbCzueQ/uocJ+eMV/SE98ryeGSCheQIbwz0577iaYa163OJWvNTkC/QlUxMk3prkiveqqOBcYBsesh7GMY0nvSZdHSkmCw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: e29207ea-c196-4372-d0b3-08d892a0ede3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2020 06:51:55.9564 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR04FT019.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: VI1EUR04HT120 Received-SPF: pass client-ip=40.92.75.10; envelope-from=arthur.miller@live.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, 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=no 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:125635 Archived-At: 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: (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 if >> you let Emacs match parenthesis for you and syntax colour entire >> expressions between matching parenthesis. >> >> >>