[Emacs] some more org-roam keybinds and config

This commit is contained in:
Lucien Cartier-Tilet 2023-06-17 14:49:06 +02:00
parent de6dd6c789
commit c3c5808b07
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5656,14 +5656,16 @@ management system based on org-mode.
(use-package org-roam (use-package org-roam
:straight (:build t) :straight (:build t)
:defer t :defer t
:config :custom
(setq org-roam-directory (expand-file-name "org/roam/" (getenv "HOME"))) (org-roam-directory (expand-file-name "org/roam/" (getenv "HOME")))
(org-roam-completion-everywhere t)
:general :general
(phundrak/leader-key (phundrak/leader-key
:packages '(org org-roam) :packages '(org org-roam)
:infix "o" :infix "o"
"r" '(:ignore t :which-key "roam") "r" '(:ignore t :which-key "roam")
"rb" '(org-mark-ring-goto :which-key "back") "rb" '(org-mark-ring-goto :which-key "back")
"rB" #'org-roam-buffer-toggle
"rn" '(:ignore t :which-key "nodes") "rn" '(:ignore t :which-key "nodes")
"rnf" #'org-roam-node-find "rnf" #'org-roam-node-find
"rni" #'org-roam-node-insert "rni" #'org-roam-node-insert
@ -5674,7 +5676,15 @@ management system based on org-mode.
"rsa" #'org-roam-db-autosync-mode "rsa" #'org-roam-db-autosync-mode
"rsc" #'org-roam-db-clear-all "rsc" #'org-roam-db-clear-all
"rsd" #'org-roam-db-diagnose-node "rsd" #'org-roam-db-diagnose-node
"rss" #'org-roam-db-sync)) "rss" #'org-roam-db-sync)
(phundrak/major-leader-key
:keymaps 'org-mode-map
:packages '(org org-roam)
"h" #'org-id-get-create
"r" '(:ignore t :which-key "roam")
"ra" '(:ignore t :which-key "alias")
"raa" #'org-roam-alias-add
"rar" #'org-roam-alias-remove))
#+end_src #+end_src
*** Org-ref and Bibtex configuration *** Org-ref and Bibtex configuration