;;; vertico-multiform.el --- Configure Vertico in different forms per command -*- lexical-binding: t -*-
;; Copyright (C) 2021-2023 Free Software Foundation, Inc.
;; Author: Daniel Mendler <mail@daniel-mendler.de>
;; Maintainer: Daniel Mendler <mail@daniel-mendler.de>
;; Created: 2021
;; Version: 0.1
;; Package-Requires: ((emacs "27.1") (vertico "1.1"))
;; Homepage: https://github.com/minad/vertico
;; This file is part of GNU Emacs.
;; 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 is a Vertico extension for fine tuning the Vertico
;; display and other minibuffer modes per command or completion
;; category. For some commands you may want to use the
;; `vertico-buffer' display and for completion categories like file
;; you prefer the `vertico-grid-mode'.
;;
;; Example:
;;
;; (setq vertico-multiform-commands
;; '((consult-line buffer)
;; (consult-imenu reverse buffer)
;; (execute-extended-command flat)))
;;
;; (setq vertico-multiform-categories
;; '((file buffer grid)
;; (imenu (:not indexed mouse))
;; (symbol (vertico-sort-function . vertico-sort-alpha))))
;;
;; (vertico-multiform-mode)
;;
;; Temporary toggling between the different display modes is possible.
;; The following keys are bound in the `vertico-multiform-map'.
;;
;; M-V -> `vertico-multiform-vertical'
;; M-G -> `vertico-multiform-grid'
;; M-F -> `vertico-multiform-flat'
;; M-R -> `vertico-multiform-reverse'
;; M-U -> `vertico-multiform-unobtrusive'
;;
;;; Code:
;;;###autoload
;; Emacs 28: Do not show display toggles in M-X
;;; vertico-multiform.el ends here