Browse Source

Add consult package

master
Riyyi 4 years ago
parent
commit
3e43420f56
  1. 17
      .config/emacs/config.org

17
.config/emacs/config.org

@ -232,8 +232,14 @@ Install and configure packages.
(use-package marginalia (use-package marginalia
:after selectrum :after selectrum
:config :config
(marginalia-mode) (setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light))
(setq marginalia-annotators '(marginalia-annotators-heavy marginalia-annotators-light))) (marginalia-mode))
(use-package consult
:after selectrum
:config
(autoload 'projectile-project-root "projectile")
(setq consult-project-root-function #'projectile-project-root))
(use-package avy (use-package avy
:defer t) :defer t)
@ -1786,9 +1792,12 @@ General.el ~leader key binds.
;; Search ;; Search
"s" '(:ignore t :which-key "search") "s" '(:ignore t :which-key "search")
"s a" '(avy-goto-char-timer :which-key "Avy goto char") "s a" '(avy-goto-char-timer :which-key "Avy goto char")
"s b" '(bookmark-jump :which-key "Jump to bookmark") "s b" '(consult-line :which-key "Search buffer")
"s f" '(consult-find :which-key "Search file")
"s l" '(avy-goto-line :which-key "Avy goto line") "s l" '(avy-goto-line :which-key "Avy goto line")
"s s" '(evil-ex-nohighlight :which-key "Stop search") "s m" '(bookmark-jump :which-key "Jump to bookmark")
"s p" '(consult-grep :which-key "Search project")
"s q" '(evil-ex-nohighlight :which-key "Stop search")
;; Tabs / toggle ;; Tabs / toggle
"t" '(:ignore t :which-key "tabs/toggle") "t" '(:ignore t :which-key "tabs/toggle")

Loading…
Cancel
Save