commit c741ef3e7a31388119028b3b21338db974eb9ba3 parent 169ea685218289896e315dc7a5c4dff6edecbe07 Author: Gabriel G. de Brito <me@gboncoffee.dev.br> Date: Wed, 1 Apr 2026 09:39:06 -0300 Revert "Counsel/Ivy/Swiper > Consult." This reverts commit 2d76e9de739eced77c737d755b1cd4d493e85893. Diffstat:
| M | emacs/config.org | | | 48 | +++++++++++++++++++++++++++++++++++------------- |
1 file changed, 35 insertions(+), 13 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -168,23 +168,44 @@ No default command a keybind, colorize the buffer. Makes the minibuffer much nicer. #+BEGIN_SRC emacs-lisp -(use-package ivy +(use-package vertico + :init (vertico-mode)) + +(use-package vertico-directory + :after vertico + :ensure nil + :bind (:map vertico-map + ("RET" . vertico-directory-enter) + ("DEL" . vertico-directory-delete-char) + ("M-DEL" . vertico-directory-delete-word)) + :hook (rfn-eshadow-update-overlay . vertico-directory-tidy)) + +(use-package vertico-mouse + :after vertico + :ensure nil + :init (vertico-mouse-mode 1)) + +(use-package orderless :init - (ivy-mode 1) - (setopt ivy-use-virtual-buffers t) - (setopt enable-recursive-minibuffers t) - (setopt ivy-use-selectable-prompt t)) - -(use-package counsel - :bind (("C-x /" . counsel-rg)) - :init - (counsel-mode 1)) - -(use-package swiper - :bind (("C-s" . swiper))) + (setq completion-styles '(orderless basic)) + (setq completion-category-defaults nil) + (setq completion-category-overrides + '((file (styles basic partial-completion))))) (use-package marginalia :init (marginalia-mode)) + +(use-package consult + :after vertico + :bind ( + ("C-x b" . consult-buffer) + ("M-y" . consult-yank-from-kill-ring) + ("M-g M-g" . consult-goto-line) + ("C-s" . consult-line) + ("C-c /" . consult-grep)) + :config + (setq xref-show-xrefs-function #'consult-xref) + (setq xref-show-definitions-function #'consult-xref)) #+END_SRC *** Windows @@ -208,6 +229,7 @@ Move windows with meta. Makes C-v and M-v to move by half pages instead of full (global-set-key (kbd "M-v") #'scroll-down-half) #+END_SRC + ** Editor configuration *** Basics Show trailing whitespaces, but not on some weird buffers of course. Display line numbers and fill column in all actual editing modes. Scroll nicely. Save history and recent files.