From 34d55a5f84a5097e9b2f9c89d8314d3c5888f8a4 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 31 May 2023 13:55:43 +0200 Subject: [PATCH] do not defer loading, use consult-imenu, add vertico narrow keys --- lisp/init-smarter-than-emacs.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/init-smarter-than-emacs.el b/lisp/init-smarter-than-emacs.el index 625cfd7..1ab4aa9 100644 --- a/lisp/init-smarter-than-emacs.el +++ b/lisp/init-smarter-than-emacs.el @@ -156,9 +156,12 @@ a remote file anytime and from everywhere I am by just entering :" (use-package consult + :defer nil ;; the alias doesn't work otherwise + ;; Replace bindings. Lazily loaded due by `use-package'. :bind (;; C-c bindings in `mode-specific-map' ("C-x b" . consult-buffer) + ("C-c C-j" . consult-imenu) ("C-x C-r" . consult-recent-file)) ;; replaces recentf ;; Enable automatic preview at point in the *Completions* buffer. This is @@ -169,6 +172,8 @@ a remote file anytime and from everywhere I am by just entering :" ;; FIXME: does not ignore .git etc, try ripgrep or ag (consult-grep-args "grep --null --line-buffered --color=never --ignore-case\ --with-filename --line-number -I -r -A1 -B1 --exclude-from=.gitignore") + (consult-narrow-key "<") + (consult-widen-key ">") :config (defalias 'egrep 'consult-ripgrep) @@ -196,8 +201,7 @@ a remote file anytime and from everywhere I am by just entering :" ("C-x C-j" . consult-dir-jump-file) :map minibuffer-local-completion-map - ("C-x C-d" . consult-dir) - )) + ("C-x C-d" . consult-dir)))