diff options
| author | Szymon Szukalski <szymon@szymonszukalski.com> | 2026-04-09 11:22:48 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@szymonszukalski.com> | 2026-04-09 11:22:48 +1000 |
| commit | 08d06ed00c9d6e98f0f8a02d243a2eb36ee4bff1 (patch) | |
| tree | dad98d4ac64219e047223c82564d93c00ddf0501 /lisp/ss-capture.el | |
| parent | bc75732b9d37b77945a977ee9f7892cf6efc79c3 (diff) | |
Improve CRM and journal workflows
Diffstat (limited to 'lisp/ss-capture.el')
| -rw-r--r-- | lisp/ss-capture.el | 7 |
1 files changed, 6 insertions, 1 deletions
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")) |
