summaryrefslogtreecommitdiff
path: root/modules/org-roam-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-23 00:12:41 -0500
committerCraig Jennings <c@cjennings.net>2025-10-23 00:12:41 -0500
commitf499ea3bf76fa552bccefbacf2644331f655fb29 (patch)
treec44380ec949d1bac919ba547584d463625584e88 /modules/org-roam-config.el
parenta60501e8557e0d0f833790e916f86ec0d17da4f2 (diff)
refactor:org-modules: Improve org-mode configuration
Remove redundant declarations and reorganize settings for clarity. Centralize org-mode customizations and use `use-package` for streamlined loading and configuration. Remove backward-compatible safeguards and reduce inline comments for cleaner code. Optimize key mappings and simplify the setup of org-related packages.
Diffstat (limited to 'modules/org-roam-config.el')
-rw-r--r--modules/org-roam-config.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el
index feecebd2..c497fd4b 100644
--- a/modules/org-roam-config.el
+++ b/modules/org-roam-config.el
@@ -11,10 +11,10 @@
;; ---------------------------------- Org Roam ---------------------------------
(use-package org-roam
- :after org
- :defer 1
- :commands (org-roam-node-find org-roam-node-insert)
- :hook (after-init . org-roam-db-autosync-mode)
+ :commands (org-roam-node-find org-roam-node-insert org-roam-db-autosync-mode)
+ :config
+ ;; Enable autosync mode after org-roam loads
+ (org-roam-db-autosync-mode)
:custom
(org-roam-directory roam-dir)
(org-roam-dailies-directory journals-dir)
@@ -90,7 +90,7 @@ the arguments that org-roam-node-insert expects."
(org-roam-capture-templates (list (append (car org-roam-capture-templates)
'(:immediate-finish t)))))
(apply #'org-roam-node-insert args)))
-(global-set-key (kbd "C-c n I") 'cj/org-roam-node-insert-immediate)
+(keymap-global-set "C-c n I" #'cj/org-roam-node-insert-immediate)
;; ------------------------- Tag Listing And Filtering -------------------------