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

(use-package org
  :hook
  ((org-mode . visual-line-mode)
   (org-mode . turn-on-org-cdlatex))
  :config
  (setq org-export-with-smart-quotes t
	org-html-validation-link nil))

(use-package org-roam
  :init
  (make-directory "~/Documents/roam" t)
  :custom
  (org-roam-directory "~/Documents/roam")
  :bind
  (("C-c r i" . org-roam-node-insert)
   ("C-c r f" . org-roam-node-find)
   ("C-c r l" . org-roam-buffer-toggle)
   ("C-c r t a" . org-roam-tag-add)
   ("C-c r t r" . org-roam-tag-remove)
   ("C-c r g" . org-roam-graph))
  :config
  (require 'org-roam-export)
  (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))

(use-package cdlatex)
(use-package auctex)
