mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-21 19:18:41 +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 ()
|
(defun my/org-roam-slipbox-node-find ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((slipbox (completing-read "Slipbox" (-map #'f-filename (f-directories my/org-roam-slipbox-directory))))
|
(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))
|
(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"))))
|
org-roam-db-location (f-join my/org-roam-slipbox-directory (s-concat slipbox ".db")))
|
||||||
(unless (f-exists? org-roam-db-location)
|
(unless (f-exists? org-roam-db-location)
|
||||||
(org-roam-db-sync))
|
(org-roam-db-sync))
|
||||||
(org-roam-node-find)))
|
(org-roam-node-find)))
|
||||||
|
|
Loading…
Reference in a new issue