1
0
Fork 0

[oni-org] Only show snippet captures in ‘org-mode’

They don't currently make sense for anywhere else...
This commit is contained in:
Tom Willemse 2023-06-13 23:46:41 -07:00
parent b874f09b9d
commit dddc309e9e

View file

@ -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 %?