(setq org-directory "~/Documents/org/")
(setq org-agenda-files '("agenda.org"))

(use-package org
  :hook
  ((org-mode . visual-line-mode))
  :config
  (setq org-export-with-smart-quotes t))

(use-package org-roam
  :init
  (make-directory "~/Documents/roam" t)
  :custom
  (org-roam-directory "~/Documents/roam")
  :bind
  (("C-c r n" . org-roam-node-insert)
   ("C-c r f" . org-roam-node-find)
   ("C-c r l" . org-roam-buffer-toggle))
  :config
  (org-roam-db-autosync-mode))

(use-package org-roam-ui
  :straight
  (:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
  :after org-roam
  :bind
  (("C-c r o" . org-roam-ui-open))
  :config
  (setq org-roam-ui-sync-theme t
        org-roam-ui-follow t
        org-roam-ui-update-on-save t
        org-roam-ui-open-on-start t))

