summaryrefslogtreecommitdiff
path: root/lisp/ss-org.el
diff options
context:
space:
mode:
authorSzymon Szukalski <szymon@szymonszukalski.com>2026-04-09 11:37:31 +1000
committerSzymon Szukalski <szymon@szymonszukalski.com>2026-04-09 11:37:31 +1000
commit8fa5aa983a7be1be78d736223d733f1da1330ec2 (patch)
tree6009f2973ea2b0268295c8f7fef7e48f7332bd25 /lisp/ss-org.el
parent08d06ed00c9d6e98f0f8a02d243a2eb36ee4bff1 (diff)
Refine journal open shortcuts
Diffstat (limited to 'lisp/ss-org.el')
-rw-r--r--lisp/ss-org.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ss-org.el b/lisp/ss-org.el
index 7df4d75..4bbd92d 100644
--- a/lisp/ss-org.el
+++ b/lisp/ss-org.el
@@ -17,9 +17,18 @@
(goto-char (point-max)))
(when (fboundp 'ss-journal-goto-date)
(if (ss-journal-goto-date)
- (org-narrow-to-subtree)
+ (progn
+ (org-fold-show-entry)
+ (org-fold-show-subtree)
+ (org-narrow-to-subtree))
(goto-char (point-max)))))
+(defun ss-open-journal-full ()
+ "Open `ss-journal-file' with the full buffer visible."
+ (interactive)
+ (find-file (ss-require-existing-file ss-journal-file))
+ (widen))
+
(defun ss-open-moc ()
"Open the central MOC note."
(interactive)