;;; embark-consult.el --- Consult integration for Embark -*- lexical-binding: t; -*-
;; Copyright (C) 2021, 2022 Free Software Foundation, Inc.
;; Author: Omar Antolín Camarena <omar@matem.unam.mx>
;; Maintainer: Omar Antolín Camarena <omar@matem.unam.mx>
;; Keywords: convenience
;; Package-Version: 20230218.2048
;; Package-Commit: 0cc29e67784cff6315ac068bc97b28dc30e6409e
;; Version: 0.7
;; Homepage: https://github.com/oantolin/embark
;; Package-Requires: ((emacs "27.1") (embark "0.20") (consult "0.17"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; This package provides integration between Embark and Consult. The package
;; will be loaded automatically by Embark.
;; Some of the functionality here was previously contained in Embark
;; itself:
;; - Support for consult-buffer, so that you get the correct actions
;; for each type of entry in consult-buffer's list.
;; - Support for consult-line, consult-outline, consult-mark and
;; consult-global-mark, so that the insert and save actions don't
;; include a weird unicode character at the start of the line, and so
;; you can export from them to an occur buffer (where occur-edit-mode
;; works!).
;; Just load this package to get the above functionality, no further
;; configuration is necessary.
;; Additionally this package contains some functionality that has
;; never been in Embark: access to Consult preview from auto-updating
;; Embark Collect buffer that is associated to an active minibuffer
;; for a Consult command. For information on Consult preview, see
;; Consult's info manual or its readme on GitHub.
;; If you always want the minor mode enabled whenever it possible use:
;; (add-hook 'embark-collect-mode-hook #'consult-preview-at-point-mode)
;; If you don't want the minor mode automatically on and prefer to
;; trigger the consult previews manually use this instead:
;; (keymap-set embark-collect-mode-map "C-j"
;; #'consult-preview-at-point)
;;; Code:
;;; Consult preview from Embark Collect buffers
;;; Support for consult-location
;;; Support for consult-grep
;;; Support for consult-xref
;;; Support for consult-find and consult-locate
;;; Support for consult-isearch
;;; Support for consult-man and consult-info
;;; Bindings for consult commands in embark keymaps
;;; Support for Consult search commands
;;; Tables of contents for buffers: imenu and outline candidate collectors
;;; embark-consult.el ends here