Add custom ‘org-edna’ finder
This commit is contained in:
parent
6f565c0d99
commit
0daa3ae8ed
1 changed files with 9 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; 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)
|
;; 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
|
;; 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
|
(setq org-capture-templates-contexts
|
||||||
'(("n" ((in-mode . "nov-mode")))))
|
'(("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)
|
(provide 'oni-org)
|
||||||
;;; oni-org.el ends here
|
;;; oni-org.el ends here
|
||||||
|
|
Loading…
Reference in a new issue