mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-24 11:09:56 +00:00
[emacs] Persist selected slipbox when switching
This commit is contained in:
parent
5a6781214d
commit
6b17ee239c
1 changed files with 3 additions and 3 deletions
|
@ -981,9 +981,9 @@ keep them tidy.
|
|||
|
||||
(defun my/org-roam-slipbox-node-find ()
|
||||
(interactive)
|
||||
(let* ((slipbox (completing-read "Slipbox" (-map #'f-filename (f-directories my/org-roam-slipbox-directory))))
|
||||
(org-roam-directory (f-join my/org-roam-slipbox-directory slipbox))
|
||||
(org-roam-db-location (f-join my/org-roam-slipbox-directory (s-concat slipbox ".db"))))
|
||||
(let ((slipbox (completing-read "Slipbox" (-map #'f-filename (f-directories my/org-roam-slipbox-directory)))))
|
||||
(setq org-roam-directory (f-join my/org-roam-slipbox-directory slipbox)
|
||||
org-roam-db-location (f-join my/org-roam-slipbox-directory (s-concat slipbox ".db")))
|
||||
(unless (f-exists? org-roam-db-location)
|
||||
(org-roam-db-sync))
|
||||
(org-roam-node-find)))
|
||||
|
|
Loading…
Reference in a new issue