[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult c5a218c2e0 1/2: README: Move example to the wik
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult c5a218c2e0 1/2: README: Move example to the wiki |
Date: |
Sun, 3 Dec 2023 12:57:36 -0500 (EST) |
branch: externals/consult
commit c5a218c2e07d8d1226da0ec89641cb41c44bde14
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
README: Move example to the wiki
---
README.org | 40 ++++++----------------------------------
1 file changed, 6 insertions(+), 34 deletions(-)
diff --git a/README.org b/README.org
index d57d75e6d7..65686dba57 100644
--- a/README.org
+++ b/README.org
@@ -656,36 +656,8 @@ configure a manual preview as follows.
#+end_src
Sources can be added directly to the =consult-buffer-source= list for
convenience.
-For example views/perspectives can be added to the list of virtual buffers from
-a library like [[https://github.com/minad/bookmark-view/][bookmark-view]].
-
-#+begin_src emacs-lisp
-;; Configure new bookmark-view source
-(add-to-list 'consult-buffer-sources
- (list :name "View"
- :narrow ?v
- :category 'bookmark
- :face 'font-lock-keyword-face
- :history 'bookmark-view-history
- :action #'consult--bookmark-action
- :items #'bookmark-view-names)
- 'append)
-
-;; Modify bookmark source, such that views are hidden
-(setq consult--source-bookmark
- (plist-put
- consult--source-bookmark :items
- (lambda ()
- (bookmark-maybe-load-default-file)
- (mapcar #'car
- (seq-remove (lambda (x)
- (eq #'bookmark-view-handler
- (alist-get 'handler (cdr x))))
- bookmark-alist)))))
-#+end_src
-
-Another useful source lists all Org buffers and lets you create new ones. One
-can create similar sources for other major modes, e.g., for Eshell.
+For example, the following source lists all Org buffers and lets you create new
+ones.
#+begin_src emacs-lisp
(defvar org-source
@@ -708,10 +680,10 @@ can create similar sources for other major modes, e.g.,
for Eshell.
(add-to-list 'consult-buffer-sources 'org-source 'append)
#+end_src
-For more details, see the documentation of =consult-buffer= and of the
-internal =consult--multi= API. The =consult--multi= function can be used to
-create new multi-source commands, but is part of the internal API as of now,
-since some details may still change.
+One can create similar sources for other major modes. See the
[[https://github.com/minad/consult/wiki][Consult wiki]] for
+many additional source examples. See also the documentation of =consult-buffer=
+and of the internal =consult--multi= API. The function =consult--multi= can be
used
+to create new multi-source commands.
** Embark integration
:properties: