官网的设置如下:
(use-package consult-org-roam
:ensure t
:after org-roam
:init
(require 'consult-org-roam)
;; Activate the minor mode
(consult-org-roam-mode 1)
:custom
;; Use `ripgrep' for searching with `consult-org-roam-search'
(consult-org-roam-grep-func #'consult-ripgrep)
;; Configure a custom narrow key for `consult-buffer'
(consult-org-roam-buffer-narrow-key ?r)
;; Display org-roam buffers right after non-org-roam buffers
;; in consult-buffer (and not down at the bottom)
(consult-org-roam-buffer-after-buffers t)
:config
;; Eventually suppress previewing for certain functions
(consult-customize
consult-org-roam-forward-links
:preview-key (kbd "M-."))
:bind
;; Define some convenient keybindings as an addition
("C-c n e" . consult-org-roam-file-find)
("C-c n b" . consult-org-roam-backlinks)
("C-c n l" . consult-org-roam-forward-links)
("C-c n r" . consult-org-roam-search))
当打开M+x consult-org-roam-mode 后再用M+x org-roam-mode-insert 插入节点时出现如下错误? consult-org-roam-node-read: Wrong number of arguments: ((cl-struct-org-roam-node-tags t) nil "Return an alist for node completion. The car is the displayed title or alias for the node, and the cdr is the `org-roam-node’ 如果使consult-org-roam-mode disable 时M+x org-roam-mode-insert 倒是正常的。