Set org & org-roam directories.

This commit is contained in:
niten 2022-06-27 10:07:15 -07:00
parent e28541411a
commit 1b2ccf9dcc
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")
(let* ((org-dir (file-truename "~/Notes"))
(roam-dir (format "%s/roam" org-dir)))
(make-directory roam-dir 'parents)
(setq org-directory org-dir)
(setq org-roam-directory roam-dir))
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.