From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id fveAG6pUIF/ldAAA0tVLHw (envelope-from ) for ; Tue, 28 Jul 2020 16:39:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sOEVF6pUIF+5SQAAB5/wlQ (envelope-from ) for ; Tue, 28 Jul 2020 16:39:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F094894053B for ; Tue, 28 Jul 2020 16:39:05 +0000 (UTC) Received: from localhost ([::1]:54284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0Sd6-0004U4-U4 for larch@yhetil.org; Tue, 28 Jul 2020 12:39:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0Sbh-00034u-L8 for emacs-orgmode@gnu.org; Tue, 28 Jul 2020 12:37:37 -0400 Received: from mail-am7eur06olkn2056.outbound.protection.outlook.com ([40.92.16.56]:38688 helo=EUR06-AM7-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 1k0Sbe-0004qK-7a for emacs-orgmode@gnu.org; Tue, 28 Jul 2020 12:37:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=APA0w/OgN7+Gg5rlSEEnCudaBuJzuiedSWThOvZIENgiMdeoGcq4wyBLYfzegZRhTbv48x/GBJ9+3Fa1LdmJH61d/2KUD5OKfeFlVcPm+HX88UVOc7cWcDKi7KbIwumllX7Q5BZ/Z8c9BJOpW5A5Ib2RAPjt3KL1wgY++m++ZXtm4TjMCAF0foyxcxL2QDPgmN43qhydWKwRg8U+kbnuCVVgbS7qEIDT+KfNNlZxfasQcbOuE6R+DeQuHHM9s3JUIpbv9pvkzwN5erlxiNZo0UOiVJP2F4HKA/XD+5WNPf+p9GgL2YvfZjWnBlRRe+Fr9nbO7osylPGFvrz27aeGNA== 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=5zhzhB63iBWDft51RSg6BDY504AeLrxoB4Rxs6+sPPs=; b=eJD9iv63Hy2MUQYUqSis/Q76vBRMLvhXK9+ddPI47Gjp4+nUjU6SZqKAKAhZsN2GuNDbRgzEW1jBb2H+24JaId43uim09urQ+RtaHHEOkKnAxvfspDVtoTmQ3gmOvNWK88iXyClcUdjba2pvE5p4txGSzgD2vcqTg550G+ZsF0bxBVUNbkyUI746QvSMgH4Z1aGbh1stJJOd5GZoUIqT4oLK7CtimzikEArJp6PJYZEzBbT6Z5c+Yb9lGCpDwidpwHsbV3j9IXLkwmKt4iQxKiAvfykaBPHyAjrexSINI9HWz2wY/TSmjPAVSSe1pNnaxm4OkwYZRCROx0v/vrdxPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AM7EUR06FT017.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::45) by AM7EUR06HT050.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::491) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10; Tue, 28 Jul 2020 16:22:28 +0000 Received: from AM7P189MB0696.EURP189.PROD.OUTLOOK.COM (2a01:111:e400:fc36::40) by AM7EUR06FT017.mail.protection.outlook.com (2a01:111:e400:fc36::263) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10 via Frontend Transport; Tue, 28 Jul 2020 16:22:28 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:0DBB6E41CDDB50A74260A113E62D9E67B974C1485FCB36F0D5730D5C930828B8; UpperCasedChecksum:3F2D8DC656DA60707999DB7610ABD9B99AA93B8266559F4BFCF76893D6A443FA; SizeAsReceived:7326; Count:44 Received: from AM7P189MB0696.EURP189.PROD.OUTLOOK.COM ([fe80::c0f7:bc20:a190:487d]) by AM7P189MB0696.EURP189.PROD.OUTLOOK.COM ([fe80::c0f7:bc20:a190:487d%5]) with mapi id 15.20.3216.034; Tue, 28 Jul 2020 16:22:27 +0000 User-agent: mu4e 1.2.0; emacs 26.3 From: Andrea To: emacs-orgmode@gnu.org Subject: [ANN] integrate Org-capture and YASnippet and Yankpad Date: Tue, 28 Jul 2020 18:22:21 +0200 Message-ID: Content-Type: text/plain X-ClientProxiedBy: AM3PR07CA0139.eurprd07.prod.outlook.com (2603:10a6:207:8::25) To AM7P189MB0696.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:113::7) X-Microsoft-Original-Message-ID: <87pn8fzk1u.fsf@live.it> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from andrea-pc.smtp.gmail.com (2001:1c02:2b1c:8900:4dc9:7fc1:3741:730c) by AM3PR07CA0139.eurprd07.prod.outlook.com (2603:10a6:207:8::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.9 via Frontend Transport; Tue, 28 Jul 2020 16:22:27 +0000 X-Microsoft-Original-Message-ID: <87pn8fzk1u.fsf@live.it> X-TMN: [Je7ryGGIf9G/Yt3I51AzqJs28gV2vr+hfrOPVT32iCzAvQNWGOjpM5SuXSusNn1WYfxh8owc1Hc=] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 44 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a22f0190-2247-4f8f-218f-08d833126b60 X-MS-TrafficTypeDiagnostic: AM7EUR06HT050: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nTSF20Q26IFJa+o35a8G4Qd2qdWd+UlpYoybJK+DEnn2L6rcxFLQLiZ7RB6b2ZVnQITsZlmvI4prEU5+yZ2fqtqC3thaJcA24o8lAM3UhnCPuiM3nqgWPzfJdWUZGnulf/L7CBn1EmxUSIDSo1Alaghs4McnI3R0C7gNdX1HB56SbfAOTGCVCqnCX2Ky2vpeXh2s35jPk4+8Mrh11ZNMhnOyUb8heFMWAcp/PspdfITODW6RaszbBL8oCfWwcIdV X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:AM7P189MB0696.EURP189.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: YQNWy5hIX59AMrLaoeFY5dK1ihzmUORQiXmd/LNK1RcunNvJ+jUEwQpKcyPHYZrpOTxqZvrXef1zPXmEh9SNU+WS11tTY5209zOu0IfjpDPlKtJwdFfRH77SQfSfFxPbeoA2Xt7wnGbs3D/OXZLh/UkxNcSK/lAAgPL6PaB5Rve8EyFXoOmFUxvx2eogUbkZ2fvJhhbQM5NPPh6OZkKOLg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a22f0190-2247-4f8f-218f-08d833126b60 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2020 16:22:27.8776 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT017.eop-eur06.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: AM7EUR06HT050 Received-SPF: pass client-ip=40.92.16.56; envelope-from=agiugliano@live.it; helo=EUR06-AM7-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 12:37:32 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=live.it (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.91 X-TUID: 3aTstxGNtKHs Hi, TL;DR: I show a way to run a yasnippet or a yankpad snippet from your org-capture templates. I would like to share with the community this little hack to integrate org-capture with the templating systems of YASnippet and Yankpad! If you like to keep snippets organized and not in the init file, you may be using YASnippet and/or Yankpad. I found that is not straightforward to run one of these while creating a task with org-capture so I hacked my way through. So this is the screencast of my hack: https://github.com/ag91/ya-org-capture/blob/master/ya-org-capture-screehcast.gif And this is a post describing why/what I did: https://ag91.github.io/blog/2020/07/28/how-to-integrate-yasnippet-and-yankpad-with-org-capture/ I hope this will be helpful to somebody else too! And any feedback is welcome, maybe there was an easier way to do it? Thanks, Andrea