aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-07-30 23:13:56 -0700
committerGravatar Tom Willemse2021-07-30 23:13:56 -0700
commitf846a15a07ccbc7408ae0926a1254ee598c5c120 (patch)
tree9792f82877fe9f8dee747b526ec15014a0fae357 /oni-org
parenta352d0983ae8dd14369bf1f1ac4aed3380795adc (diff)
downloademacs-config-f846a15a07ccbc7408ae0926a1254ee598c5c120.tar.gz
emacs-config-f846a15a07ccbc7408ae0926a1254ee598c5c120.zip
[oni-org] Fix ‘oni-org-find-knowledge-file’
Make sure that any new files for notes are created in the ‘oni-org-knowledge-directory’ directory and not in whichever directory the current buffer is visiting.
Diffstat (limited to 'oni-org')
-rw-r--r--oni-org/oni-org.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 662b43f..4c39570 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0724.010848
+;; Version: 2021.0730.213310
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti)
;; This program is free software; you can redistribute it and/or modify
@@ -126,7 +126,8 @@
;; exist yet, it’s created and the title is inserted into it.
(defun oni-org-find-knowledge-file ()
(interactive)
- (let* ((completions (oni-org--get-knowledge-files))
+ (let* ((default-directory oni-org-knowledge-directory)
+ (completions (oni-org--get-knowledge-files))
(pick (completing-read "File: " completions))
(file (car (alist-get pick completions nil nil #'string=))))
(if file