Adapt to better work on other systems.

This commit is contained in:
2025-12-19 10:32:01 +09:00
parent 9cd88d6be9
commit 26913bece6
4 changed files with 13 additions and 5 deletions

View File

@@ -48,7 +48,9 @@
(setq org-roam-directory (file-truename "~/data2/Notes"))
;; This tells org-roam to sync notes with its index in the background.
(org-roam-db-autosync-mode)
(if (file-directory-p org-roam-directory)
(org-roam-db-autosync-mode)
(message "Org Roam directory (%s) does not exist. Autosync disabled." org-roam-directory))
(setq global-roam-map (make-sparse-keymap "Roam Keys"))
(global-set-key "\C-cr" global-roam-map)