Created
October 2, 2022 15:37
-
-
Save apc/bd1d90f9b221ade75d5e153646c35dc0 to your computer and use it in GitHub Desktop.
Add a source to `consult-buffer-sources` containing only org-roam buffers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(autoload 'org-roam-buffer-list "org-roam") | |
(defvar org-roam-buffer-source | |
`(:name "Org-roam" | |
:hidden t | |
:narrow ?r | |
:category buffer | |
:state ,#'consult--buffer-state | |
:items ,(lambda () (mapcar #'buffer-name (org-roam-buffer-list))))) | |
(add-to-list 'consult-buffer-sources 'org-roam-buffer-source 'append) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment