dotfiles/emacs-lisp/cosult.org
main 0406c2b539
A lot of Emacs config edits
Signed-off-by: main <magic_rb@redalder.org>
2022-05-02 23:32:46 +02:00

928 B

Consult

Consult provides practical commands based on the Emacs completion function completing-read. Completion allows you to quickly select an item from a list of candidates.

  (use-package consult
    :straight t
    :bind (("C-x b" . consult-buffer)
           ("C-x 4 b" . consult-buffer-other-window)
           ("C-x 5 b" . consult-buffer-other-frame)
           ;; M-s bindings (search-map)
           ("M-s r" . consult-ripgrep)
           ("M-s f" . consult-find))
    :init
    (setq consult-project-root-function #'projectile-project-root)
    (setq consult-ripgrep-args "rg --null --line-buffered --color=never --max-columns=1000 --path-separator /   --smart-case --no-heading --line-number --hidden .")
    (setq consult-find-args "find ."))