diff options
author | Adrian Kummerlaender | 2021-07-18 15:28:01 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-07-18 15:28:01 +0200 |
commit | aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f (patch) | |
tree | 13c09936077d5d2248272b9ac5ee2ed419b94227 /gui/conf | |
parent | f4288d9db4e93a6cc16628f9033243ca85ab8fd9 (diff) | |
download | nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar.gz nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar.bz2 nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar.lz nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar.xz nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.tar.zst nixos_home-aadce65dcc4bb6fbcfc049aeccb1ea2673cfd02f.zip |
Update org-roam config to 2.0
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) |