consult-org-roam 应该如何设置?

官网的设置如下:

(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 倒是正常的。

昨天我刚好也试了这个,不过我用的是 doom,配置应该是没问题的,能正常运行起来。光看这点错误信息也很难判断,感觉问题可能出在 roam 一边,你可以精简配置,或者换一个空目录排查一下。

这个有什么用啊?增强?

有个 forward-link 和 backlinks功能,我觉得挺好用的。可以用来直接跳转。

我的是默认设置

开了consult-org-roam-mode 以后使用 org-roam-node-insert 增加节点是正常的 :joy:

这个包用来做节点跳转挺好用

我把上面的配置全部注释掉,好像也不行。你的默认设置是怎么设置的?

你用emacs -Q测过了吗?我这工作是正常的。

运行emacs -Q 没有报错。

二分法测吧,给的信息太少。

:rofl:我的org-roam配置和consult-org-roam配置,基本就是仓库里的例子改了下快捷键

1 个赞