diff options
Diffstat (limited to 'gui/conf')
-rw-r--r-- | gui/conf/init.el | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el index bdd2cf9..ee2a1a1 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -401,34 +401,17 @@ (use-package org-roam :ensure t - :hook - (after-init . org-roam-mode) :custom (org-roam-directory "~/org") - (org-roam-completion-system 'helm) - (org-roam-rename-file-on-title-change nil)) - -(defhydra hydra-roam () - "Roam" - ("s" org-roam "Toggle sidebar" :column "View") - ("r" org-roam-db-build-cache "Update cache" :column "View") - - ("f" org-roam-find-file "Find file" :column "Navigation") - - ("c" org-roam-insert "Create link" :column "Links") - ("y" org-store-link "Store link" :column "Links") - ("p" org-insert-link "Insert link" :column "Links") - - ("dy" org-roam-dailies-yesterday "Yesterday" :column "Dailies") - ("dc" org-roam-dailies-today "Today" :column "Dailies") - ("da" org-roam-dailies-date "Arbitrary" :column "Dailies") - ("dt" org-roam-dailies-tomorrow "Tomorrow" :column "Dailies") - - ("q" nil "Exit menu" :column "Other")) + :config + (org-roam-setup) + (evil-leader/set-key "rf" 'org-roam-node-find)) -(global-set-key (kbd "C-c r") 'hydra-roam/body) -(evil-leader/set-key "rh" 'hydra-roam/body) -(evil-leader/set-key "rf" 'org-roam-find-file) +(setq org-roam-capture-templates + '(("d" "default" plain "%?" + :if-new (file+head "${slug}.org" + "#+title: ${title}\n") + :unnarrowed t))) (use-package org-noter :ensure t) @@ -503,13 +486,6 @@ :config (evil-leader/set-key "SPC" 'ace-jump-mode)) -(setq org-roam-capture-templates - '(("d" "default" plain (function org-roam-capture--get-point) - "%?" - :file-name "${slug}" - :head "#+title: ${title}\n" - :unnarrowed t))) - (use-package auctex :defer t) |