summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'init.org')
-rw-r--r--init.org7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.org b/init.org
index 09d07af..754ca30 100644
--- a/init.org
+++ b/init.org
@@ -2212,7 +2212,12 @@
(jao-afio--goto-docs)
(if b (pop-to-buffer b) (find-file file))))
- (defun jao-open-doc (file) (funcall jao-open-doc-fun file))
+ (defun jao-open-doc (&optional file)
+ (interactive)
+ (when-let (file (or file
+ (read-file-name "Document: "
+ (concat jao-org-dir "/doc/"))))
+ (funcall jao-open-doc-fun file)))
(defun jao-open-pdf-session ()
(interactive)