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 07:43:27 +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="23272"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 07:45:18 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 1kiXVO-0005wS-5M for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 07:45:18 +0100 Original-Received: from localhost ([::1]:33814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiXVN-0007zB-1w for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 01:45:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiXUC-0007VM-9w for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:44:04 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:43337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiXU8-0003Wp-Q9 for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:44:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606459407; bh=9MQsBfrlwO39xMLfoiRX5pqVCV2I8jTsWmxxIX/DeSk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ADEwBp2SZM/nThjuVb5ENLA2LXylcs0wdzXueGN+oZoE+1+Qv7cThEoZsyRkXTOXm rC3b3xeUZhV4O2hvBxV2YT4aSYPmhHHdlvCIh8D37jMpMA3xXBcBT+Mt6S/G15EZMU Wes4Y9jHpcsdRvJvaNwoB7Q6JCfgnVhFpKg6/AH4= 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 07:43:27 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:70/p+K4Yk0Eo13X60UujAC19G0YGqbheguBcP7mhKwBBEgppoUsQU1qSZcV1fm8eyGwVd sRN0UR4+TCLvAS0qzPZsKEAHvfotwQSGjLVqCCSjmj0K4xgCA2OY+z62NSPiwesW4szxC4Ozrhp6 kgNkA7CQDenBpgU39cCriWPH8CNjC6RiGA99y7rpOOExeZbjHxRZEXLrFdUK5kuZVBy8N9ktrRDX Lj9vmcCAdpUhDHfjnPnblKzywE/kxXM+oBq+zzYEtRai1H4aHzvODR+5yuSWulP8xPVrYQI23MQM sY= X-UI-Out-Filterresults: notjunk:1;V03:K0:Tm83frodh6k=:asDQHDZ/1yd5T7141UWPVb Q4Yy19MJHlcZyj8ZnKw8Ksg852tNYbT3VgJ2RYWEg7X9RgDA9B/3Pnl75oWGCL0G4GYH9tP90 xQY3bOJhn5kQYaJ5YPd9meV//oNsQdIwj+OyxHO6EoV/r7U8fbXA+46AVKjs916QUvPxWT3RR BVx+V+oLwgQKtci14Z6MQ+C1rtiGq0C6urI/D7ZUKzzNP3zXludqqsA5Jrzxnx11whj62aWKE asfGrXKr+wbiUELlObEo5EOSsNrTAWpvqBG2adUMIW/8mx3xyAFymytX7I+lFlJLO0fpzSG/j /NwnrI7y7Lccp0QiTZ01qw6PwOW8C0uyzp9QLkzNiqEPjOmfnIqwGTxQQ9QO6op7hlM73gSnq hueW7lc7XC6aJsBotToY40GO0to5/uiHD5/Ut3m+Asjk8RRiz8ofasb1hZaP4d75kswpdF6ej 2mm2a9nJwqAs4R73ZC/BIqarRBLUig1oiwOmSKlSLcKtVgSToBWVByWGhMEYN0vj//EtIW0B4 Z9XaaKXbf8H+/5saRPDwV0pgsApNX3vf0TGMotvEP9BJHk2TBlTwMAYZxQmO0t4jQkLPmcUsx DAydx5x1B3SjE= Received-SPF: pass client-ip=212.227.15.15; 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:125634 Archived-At: > Sent: Friday, November 27, 2020 at 7:30 AM > From: "Jean Louis" > To: daniela-spit@gmx.it > Cc: "Help Gnu Emacs" > Subject: Re: Org Capture Template > > * daniela-spit@gmx.it [2020-11-27 09:14]: > > Yes, it seems better to do one long string, it was how I was doing th= ings. > > Afterwards, I thought that concat could help me to indent the string f= or cases > > where it is too long. Is there any other way to be able to indent, ra= ther than > > using column number 1, when starting a new line? > > When doing customization or when writing some text? Or in programming > modes? > > In customization I have no idea about indenting. Normally items are in > field forms and person need not do complicated lists. > > Do you use the `customize' function to define org-capture-templates? I just use as in example (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"))) > As it looks like below, pretty visible, easier to edit. > > Hide Org Capture Templates: > INS DEL Choice: Value Menu Template entry: > Keys : p > Description : Protocol > Capture Type : Value Menu Org entry > Target location: Value Menu File & Headline: > Filename : Value Menu Literal: ~/Documents/Orgnotes.or= g > Headline: Inbox > Template : Value Menu String: * %^{Title} > Source: %u, %c > #+BEGIN_QUOTE > %i > #+END_QUOTE > > If you use it directly in your config, then you have standard Emacs > Lisp indentation. For strings you can do any how, but then do not > invoke M-q to indent as it will ruin your own string chunk > indentations. > > When there are longer strings with new lines I tend to define them this = way: > > (let ((string "The heading > > Then anything else is here. > I just keep writing straight from first column"))) > > rather than using this way: > > (let ((string (concat "The heading\n\n" > "Then anything else is here.\n" > "I just keep writing straight from first column"))= )) > > > And I mean longer strings than those above. For few lines I could > be using similar method like you.