aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org/oni-org.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-12-29 18:49:47 -0800
committerGravatar Tom Willemse2020-12-29 18:49:47 -0800
commit0daa3ae8ed1d089ddf7706bf1b81e3dff3004ab9 (patch)
treead82a45f2452b690691e44de076030c4ec1c1a78 /oni-org/oni-org.el
parent6f565c0d999787381bc7be50179e51510390be81 (diff)
downloademacs-config-0daa3ae8ed1d089ddf7706bf1b81e3dff3004ab9.tar.gz
emacs-config-0daa3ae8ed1d089ddf7706bf1b81e3dff3004ab9.zip
Add custom ‘org-edna’ finder
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r--oni-org/oni-org.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 2a9a9f6..225e6e7 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: 2020.1227.132121
+;; Version: 2020.1229.184938
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons)
;; This program is free software; you can redistribute it and/or modify
@@ -453,5 +453,13 @@ After running it once remove it from `org-capture-after-finalize-hook'."
(setq org-capture-templates-contexts
'(("n" ((in-mode . "nov-mode")))))
+(defun org-edna-finder/next-sibling-first-child ()
+ "A finder for ‘org-edna’ to find the first child of the next sibling."
+ (save-excursion
+ (org-back-to-heading t)
+ (org-goto-sibling)
+ (org-goto-first-child)
+ (list (point-marker))))
+
(provide 'oni-org)
;;; oni-org.el ends here