diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2021-05-17 21:36:37 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2021-05-21 11:54:42 -0600 |
commit | c1ff43453a133ee3661c4500e69308ebe0a4fe21 (patch) | |
tree | 1ec003011a628624876f50edb2077a905b9a6082 /config/emacs/emacs.d/lisp | |
parent | c4bb2c95a45ea59185b01ca243bda3c7c4b19b85 (diff) | |
download | dotfiles-c1ff43453a133ee3661c4500e69308ebe0a4fe21.tar.gz dotfiles-c1ff43453a133ee3661c4500e69308ebe0a4fe21.tar.xz |
emacs: if ripgrep is installed, configure helm
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'config/emacs/emacs.d/lisp')
-rw-r--r-- | config/emacs/emacs.d/lisp/init-helm.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/emacs/emacs.d/lisp/init-helm.el b/config/emacs/emacs.d/lisp/init-helm.el index 3abb6908..9250e087 100644 --- a/config/emacs/emacs.d/lisp/init-helm.el +++ b/config/emacs/emacs.d/lisp/init-helm.el @@ -28,6 +28,7 @@ (defvar helm-sources-using-default-as-input) (defvar helm-split-window-inside-p) (defvar swiper-helm) +(defvar helm-rg) (use-package helm @@ -110,5 +111,8 @@ (setq helm-grep-default-command "ack-grep -Hn --no-group --no-color %e %p %f" helm-grep-default-recurse-command "ack-grep -H --no-group --no-color %e %p %f")) +(when (executable-find "rg") + (use-package helm-rg)) + (provide 'init-helm) ;;; init-helm.el ends here |