From dddc309e9e775069ae09de320668bb3ec8667745 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 13 Jun 2023 23:46:41 -0700 Subject: [PATCH] =?UTF-8?q?[oni-org]=20Only=20show=20snippet=20captures=20?= =?UTF-8?q?in=20=E2=80=98org-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They don't currently make sense for anywhere else... --- oni-org/oni-org.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index d0d676f..63069a1 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2023.0613.185557 +;; Version: 2023.0613.234632 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-bullets org-edna diminish all-the-icons olivetti form-feed org-pretty-table) ;; This program is free software; you can redistribute it and/or modify @@ -1224,6 +1224,8 @@ This is done by adding a ‘:hidden t’ header argument to the code block." :empty-lines 1 :immediate-finish t :jump-to-captured t)) +(setf (map-elt org-capture-templates-contexts "sE") + '(((in-mode . "org-mode")))) (setf (map-elt org-capture-templates "se") '("Questions for Emacs articles" plain (function ignore) @@ -1232,9 +1234,13 @@ This is done by adding a ‘:hidden t’ header argument to the code block." :empty-lines 1 :immediate-finish t :jump-to-captured t)) +(setf (map-elt org-capture-templates-contexts "se") + '(((in-mode . "org-mode")))) (setf (map-elt org-capture-templates "s") '("Snippets")) +(setf (map-elt org-capture-templates-contexts "s") + '(((in-mode . "org-mode")))) (setf (map-elt org-capture-templates "t") '("A simple TODO item." entry (file "") "* TODO %?