mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-27 19:19:53 +00:00
[emacs] Set a default slipbox on startup
This commit is contained in:
parent
d629841dbd
commit
75b73549a1
1 changed files with 7 additions and 2 deletions
|
@ -876,8 +876,8 @@ Load shared code snippets to be used in org documents.
|
||||||
Gorgeous HTML exports.
|
Gorgeous HTML exports.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! ox-tufte
|
;; (use-package! ox-tufte
|
||||||
:after ox)
|
;; :after ox)
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Journal
|
*** Journal
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -1005,6 +1005,11 @@ keep them tidy.
|
||||||
(:prefix-map ("n" . "notes")
|
(:prefix-map ("n" . "notes")
|
||||||
(:prefix ("r" . "roam")
|
(:prefix ("r" . "roam")
|
||||||
:desc "Synchronize all slipbox databases" "S" #'my/org-roam-slipbox-db-sync)))
|
:desc "Synchronize all slipbox databases" "S" #'my/org-roam-slipbox-db-sync)))
|
||||||
|
|
||||||
|
;; Set a default org-roam directory from the available slipboxes
|
||||||
|
(if-let (slipbox (-first-item (-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"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Sidebar
|
*** Sidebar
|
||||||
|
|
Loading…
Reference in a new issue