From 1b12caa6b8404140dd05372d6ab8f791e1cf9438 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 4 Jan 2022 23:57:39 -0600 Subject: Changes --- lisp/+org-capture.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp/+org-capture.el') diff --git a/lisp/+org-capture.el b/lisp/+org-capture.el index 6968657..ba036bd 100644 --- a/lisp/+org-capture.el +++ b/lisp/+org-capture.el @@ -3,6 +3,7 @@ ;;; Code: (require 'cl-lib) +(require 'acdw) ;; We don't require `org-capture' here because I'll have to require this library ;; to init.el /before/ org-capture is fully needed. But I do need to declare ;; `org-capture-templates'. @@ -39,6 +40,10 @@ LIST is a symbol and defaults to `org-capture-templates'." (set list (sort (symbol-value list) (lambda (a b) (string< (car a) (car b)))))) +(defun +org-capture-sort-after-init (&optional list) + "Sort LIST with `+org-capture-sort' after Emacs init." + (+ensure-after-init #'+org-capture-sort)) + ;;;###autoload (defun +org-capture-templates-setf (key value &optional list sort-after) "Add KEY to LIST, using `setf'. -- cgit 1.4.1-21-gabe81