branch: master
commit e88c7d6f4f9f3a371ac0dc905358e2575cbce081
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-locate-cmd): Simplify
Re #1950
Thanks @basil-conto
---
counsel.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index 7bad3f7..81b0402 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2220,9 +2220,7 @@ can use `C-x r j i' to open that file."
'(("j" find-file-other-window "other window")))
;;** `counsel-locate'
-(defcustom counsel-locate-cmd (cond ((eq system-type 'darwin)
- 'counsel-locate-cmd-noregex)
- ((eq system-type 'berkeley-unix)
+(defcustom counsel-locate-cmd (cond ((memq system-type '(darwin berkeley-unix))
'counsel-locate-cmd-noregex)
((and (eq system-type 'windows-nt)
(executable-find "es.exe"))