about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-minibuffer.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-25 16:36:26 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-25 16:36:26 +0100
commit9355affb7d51e11cabb2903ad95ee54ad889a493 (patch)
tree131fd53ed51dcc1b73a467d418f2e065635fb173 /.emacs.d/lisp/init-minibuffer.el
parent3dfa7cde68ed88ad7369d32257242d151047d7d1 (diff)
downloaddotfiles-9355affb7d51e11cabb2903ad95ee54ad889a493.tar.gz
Add preliminary vertico-multiform config
Diffstat (limited to '.emacs.d/lisp/init-minibuffer.el')
-rw-r--r--.emacs.d/lisp/init-minibuffer.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index ccff634..785a003 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -80,6 +80,21 @@
          ("C-M-S-g" . minibuffer-really-quit)
          (:map vertico-map ("M-RET" . minibuffer-force-complete-and-exit))))
 
+(use-extension vertico vertico-multiform
+  :config
+  (vertico-multiform-mode +1)
+  ;; TODO how to make it toggle?
+  (defun vertico-multiform-buffer-grid ()
+    (interactive)
+    (push '(vertico-buffer-mode vertico-grid-mode) vertico-multiform--stack)
+    (vertico-multiform--toggle 1))
+  (setq vertico-multiform-commands
+        ;; See twice as manu lines
+        '((consult-line grid)))
+  (setq vertico-multiform-categories
+        '((imenu grid)))
+  :bind (:map vertico-multiform-map ("M-Q" . vertico-multiform-buffer-grid)))
+
 (use-extension vertico vertico-directory
   :config
   (defvar switching-project nil)