emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/embark 3b91887d13 3/8: Add a warning in case embark-con


From: ELPA Syncer
Subject: [elpa] externals/embark 3b91887d13 3/8: Add a warning in case embark-consult cannot be loaded
Date: Sun, 23 Oct 2022 12:57:39 -0400 (EDT)

branch: externals/embark
commit 3b91887d13b7a356ea3a85977c96cf754c1db4be
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Add a warning in case embark-consult cannot be loaded
    
    A missing embark-consult package seems to be a common issue. Warn about it.
---
 README.org | 8 ++++----
 embark.el  | 8 ++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.org b/README.org
index a67e8f2d88..9fc92f5a97 100644
--- a/README.org
+++ b/README.org
@@ -189,10 +189,10 @@ sets:
   package menu mode.
 
   If you use the grepping commands from the 
[[https://github.com/minad/consult/][Consult]] package,
-  =consult-grep=, =consult-git-grep= or =consult-ripgrep=, then you'll
-  probably want to install and load the =embark-consult= package, which
-  adds support for exporting a list of grep results to an honest
-  grep-mode buffer, on which you can even use 
[[https://github.com/mhayashi1120/Emacs-wgrep][wgrep]] if you wish.
+  =consult-grep=, =consult-git-grep= or =consult-ripgrep=, then you should
+  install the =embark-consult= package, which adds support for exporting a
+  list of grep results to an honest grep-mode buffer, on which you can
+  even use [[https://github.com/mhayashi1120/Emacs-wgrep][wgrep]] if you wish.
 
 When in doubt choosing between exporting and collecting, a good rule
 of thumb is to always prefer =embark-export= since when an exporter to a
diff --git a/embark.el b/embark.el
index db7019f654..f746ed8942 100644
--- a/embark.el
+++ b/embark.el
@@ -3259,6 +3259,14 @@ PRED is a predicate function used to filter the items."
 
 ;;; Integration with external completion UIs
 
+;; consult
+
+(with-eval-after-load 'consult
+  (unless (require 'embark-consult nil 'noerror)
+    (warn "The package embark-consult should be installed if you use both 
Embark and Consult")))
+
+;; marginalia
+
 ;; Ensure that the Marginalia cache is reset, such that
 ;; `embark-toggle-variable-value' updates the display (See #540).
 (with-eval-after-load 'marginalia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]