summaryrefslogtreecommitdiffhomepage
path: root/lib/doc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doc')
-rw-r--r--lib/doc/jao-doc-session.el2
-rw-r--r--lib/doc/jao-org-focus.el1
-rw-r--r--lib/doc/jao-org-notes.el3
3 files changed, 4 insertions, 2 deletions
diff --git a/lib/doc/jao-doc-session.el b/lib/doc/jao-doc-session.el
index 31b92c7..a846302 100644
--- a/lib/doc/jao-doc-session.el
+++ b/lib/doc/jao-doc-session.el
@@ -43,7 +43,7 @@ See also `jao-doc-session-mark'.")
(dolist (b (buffer-list))
(when-let* ((fs (and (not (eq cb b)) (jao-doc-session-is-doc b)))
(fs (if (listp fs) fs (list (buffer-file-name b)))))
- (dolist (f fs) (add-to-list 'docs f))))
+ (dolist (f fs) (push f docs))))
(when (or force (> (length docs) 0))
(setf (multisession-value jao-doc--session) docs))))
diff --git a/lib/doc/jao-org-focus.el b/lib/doc/jao-org-focus.el
index c506f07..2c0805d 100644
--- a/lib/doc/jao-org-focus.el
+++ b/lib/doc/jao-org-focus.el
@@ -53,6 +53,7 @@
(jao-org-focus--jump-to-title (format "./%s" file) title)))
;;; focus on subtree
+;;;###autoload
(defun jao-org-focus ()
"Pop creatingly to an indirect buffer focused on the encloing subtree.
diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el
index fbe3c1f..78ff76c 100644
--- a/lib/doc/jao-org-notes.el
+++ b/lib/doc/jao-org-notes.el
@@ -1,6 +1,6 @@
;;; jao-org-notes.el --- A simple system for org note taking -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021, 2022, 2024, 2025 jao
+;; Copyright (C) 2020, 2021, 2022, 2024, 2025, 2026 jao
;; Author: jao <mail@jao.io>
;; Keywords: tools
@@ -152,6 +152,7 @@
(d (file-name-as-directory d)))
(expand-file-name (concat d bn ".org") jao-org-notes-dir)))))
+;;;###autoload
(defun jao-org-notes-open ()
"Search for a note file, matching tags and titles with completion.