diff options
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")) |
