From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: org-capture-templates constructed from three distinct functions Date: Sat, 12 Dec 2020 04:24:04 +0100 Message-ID: References: <87zh2j90jz.fsf@web.de> 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="31398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 04:25:04 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 1knvWp-000839-GY for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 04:25:03 +0100 Original-Received: from localhost ([::1]:52894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knvWo-0006cs-F3 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 22:25:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knvVz-0006ck-TE for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 22:24:12 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:43189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knvVu-0002Lu-9N for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 22:24:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607743444; bh=HKkpILDvYKdvlRc8bGEH4CD/pnZIddTenYnFZ6jL7ew=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=B9PQN2DLTcMr20jjzXr66DfCMB3/duJzjw3PLscqShnVgC9+07PSaiPHYDV6A04Gg AYx3w6wSLlJMFtFFOHAn5Yc1E/0y63qFwiWOovBsjPX3018SgvdVhPqw1PUS0lNDMj P1Bb/U8uZ/T92cmyrONYM07GSqZaGZIeXqXdjVRg= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Sat, 12 Dec 2020 04:24:04 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87zh2j90jz.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:84UIziSIOhoRYmHQp9hhBbjhUImaoV69ktWyhtH+7cY4bP4tz1CxQkRu1wzt77jnHOfgl uZBvA0LPiLtRDT20rXv8mzHs85Z4Russj3rqfn04iBVt8NbqksQJ7i2KGc5y4Uz4FIVAzW2USJuj 4cEgo6UYk8/BOAcdgodygFlTtLfTdQblKYV/u9MLY0f7xq75g0BfRRnQGRRNgiTh0PfLek+nW5mF 6dV44Zn6um9bm7YqbMQ5a4HG8qKpXSuB+z09Tl1JWgZUFvKyNDbenvsODNzr72iLx8FgfV/ugj2Q rQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:tks3MTL3l3c=:5qsmONJulm5OrkP9vLoduy FLqaIP6BECLNes8pRTuhZEIlYHY1sDiTTI0IzKZiWR+7Iyl4IJCsQotv+BTUV4WZmp7O9VvT5 JQvLfvAqqKmiPnbN5CluLpFyCSCelVLGWaKgbcF8c2UiUwAeT7LPgIj7mjMvUe4+/K3y4cEdR vWNJqzxTqIDS3cjZo7o7ThG+DZ5Kgmm/7w9Cgd3nw6B4mlaUdObqR9qY/8E3+h7nCf4IyLvVb fOuZaX/BWwobG4iB6ULP8j7ZQAY5z1IN7Dt+jy+ACyM3MGdY+gR2yn6t6nKBuOZz89KQzmjmM i10s1cgk915fjSWoqQ6iMXextnki4Cp4T9pT4SydGUWSJh1gdvi1+mSohNmo54H1grhEmCtKe xq+n9CbnFcXFY4Ff8V+GwxDWjSUxMAp9XsVpy+OfXizwtN+zRdiuyrnht2ZxaVzyUOU7yYNGK 49yYHpYkSPMWMyGifTqVISAx/71Ub5pUI4V9Ohp80g9Qe0RMJkTAYWt3J21bggmvDv5vWgns7 ljagWFMVFxI17UwzytXDkoiZzVRM2KKEPXkrJqiDIies/Ie3zU6JYGnEaERTFIZlTSUbPuZA6 RrUHyRxeZ37bQ= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; 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:126275 Archived-At: > Sent: Saturday, December 12, 2020 at 4:16 AM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: org-capture-templates constructed from three distinct funct= ions > > Christopher Dimech writes: > > > Can using three different functions be done to make org-capture > > templates? > > I had to think long about what this question wants to ask. > > I guess you want to know how you can add more templates without > overwriting the existing (partly filled) list of templates? I want to write ideas for three books say, and could have the template lis= t for each book in either a function or a variable. Then append the three a= t the end. Have been trying as follows with just on book for now, but have not been successful. (setq captr-tmplt-tdr `( ("t" "Tdr Document") ; backquote construct ("t1" "Tdr: Ch01 Oceanic Microseismology" entry (file+headline "~/02histr/tdr/01ch.rcl.org" "Tdr Document") ,(concat "* Oceanic Microseismology\n" ; special marker " %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n" " Scheduled: %^T\n Entered: %T\n Link: %a\n") :clock-in t :clock-resume t :empty-lines 1) ("t2" "+ Ch02 Multi-Resolution Spectral Analysis" entry (file+headline "~/02histr/tdr/02ch.rcl.org" "Tdr Document") ,(concat "* Ch02 Multi-Resoln Spectr Anly\n" " %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n" " Scheduled: %^T\n Entered: %T\n Link: %a\n") :clock-in t :clock-resume t :empty-lines 1) )) ;; ---------------------------------------------------------------------- (defun captr-tdr () (interactive) (setq org-capture-templates 'captr-templ-tdr)) (global-set-key (kbd "H-c") #'captr-tdr) > Michael. > > >