Org-roam major redesign

Selectrum + Embark (and which-key) w/org-roam.

; org-roam v2 keymap

(defvar my-org-roam-map
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "t") 'org-roam-buffer-toggle)
    (define-key map (kbd "i") 'org-roam-node-insert)
    (define-key map (kbd "f") 'org-roam-node-find)
    (define-key map (kbd "r") 'org-roam-ref-find)
    (define-key map (kbd "g") 'org-roam-show-graph)
    (define-key map (kbd "c") 'org-roam-capture)
    (define-key map (kbd "j") 'org-roam-dailies-capture-today)
    map)
  "Keymap for 'org-roam' v2.")

; make available my-org-roam-map to embark-act
(add-to-list 'embark-keymap-alist '(org-roam-node . my-org-roam-map))

4 Likes