diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-09-30 15:55:39 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-09-30 15:55:39 +0100 |
commit | 84cba667c3ddb37b0ebf63631609b5378c954552 (patch) | |
tree | d677c7cc4d0389b6d451f211865b6fdb32a07e16 /.emacs.d | |
parent | 80c972570e3a2d18816a4a1eb1540fa4d2833bce (diff) | |
download | dotfiles-84cba667c3ddb37b0ebf63631609b5378c954552.tar.gz |
Make C-s scroll through consult-line history
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index a1d29ef..c8a3e32 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -342,6 +342,12 @@ DEFS is a plist associating completion categories to commands." (add-to-list 'consult-mode-histories '(cider-repl-mode cider-repl-input-history)) + (defvar consult-line-map + (let ((map (make-sparse-keymap))) + (define-key map "\C-s" #'previous-history-element) + map)) + (consult-customize consult-line :keymap consult-line-map) + (defun consult-ripgrep-auto-preview (&optional dir initial) (interactive "P") (consult-ripgrep dir initial)) |