From 1dd9b496d929fe48970f929492e9db40ae68cc2c Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 11 Aug 2020 17:10:18 +0900 Subject: [PATCH] Check rg existance --- emacs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs.el b/emacs.el index df44375..2be2630 100644 --- a/emacs.el +++ b/emacs.el @@ -1151,6 +1151,8 @@ THEM are function and its args." (defun my-fzf-all-lines () "Fzf all lines." (interactive) + (unless (executable-find "rg") + (error "rg not found")) (let ((process-environment (cl-copy-list process-environment))) (setenv "FZF_DEFAULT_COMMAND" "rg -nH --no-heading --hidden --follow --glob '!.git/*' --color=always ^") (fzf)))