From 08d06ed00c9d6e98f0f8a02d243a2eb36ee4bff1 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Thu, 9 Apr 2026 11:22:48 +1000 Subject: Improve CRM and journal workflows --- lisp/ss-capture.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lisp/ss-capture.el') diff --git a/lisp/ss-capture.el b/lisp/ss-capture.el index f930716..0489888 100644 --- a/lisp/ss-capture.el +++ b/lisp/ss-capture.el @@ -76,7 +76,12 @@ When CREATE is non-nil, create the datetree entry when missing." (org-narrow-to-subtree) (dolist (section ss-journal-section-headings) (goto-char (point-min)) - (unless (org-find-exact-headline-in-buffer section) + (forward-line 1) + (unless (re-search-forward + (format "^%s %s$" + (make-string section-level ?*) + (regexp-quote section)) + nil t) (goto-char (point-max)) (unless (bolp) (insert "\n")) -- cgit v1.2.3