diff options
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |