Sfoglia il codice sorgente

Check rg existance

master
10sr 4 anni fa
parent
commit
1dd9b496d9
Firmato da: 10sr ID Chiave GPG: 7BEC428194130EB2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      emacs.el

+ 2
- 0
emacs.el Vedi File

@@ -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)))


Caricamento…
Annulla
Salva