aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-06-13 23:46:41 -0700
committerGravatar Tom Willemse2023-06-13 23:46:41 -0700
commitdddc309e9e775069ae09de320668bb3ec8667745 (patch)
treeb94c98f7c67b090dbbc1609a308c0f5161c4452c /oni-org
parentb874f09b9d4b81748aa77764025fa5973e6f6792 (diff)
downloademacs-config-dddc309e9e775069ae09de320668bb3ec8667745.tar.gz
emacs-config-dddc309e9e775069ae09de320668bb3ec8667745.zip
[oni-org] Only show snippet captures in ‘org-mode’
They don't currently make sense for anywhere else...
Diffstat (limited to 'oni-org')
-rw-r--r--oni-org/oni-org.el8
1 files changed, 7 insertions, 1 deletions
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 <tom@ryuslash.org>
;; 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 %?