From 11d490d1ba438f620cca23892c6d468924471c19 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Sat, 14 Jun 2014 13:05:41 +0200 Subject: Use PATH when checking for gls --- lisp/init-mac.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lisp/init-mac.el') diff --git a/lisp/init-mac.el b/lisp/init-mac.el index bebe4fc..e640c9c 100644 --- a/lisp/init-mac.el +++ b/lisp/init-mac.el @@ -33,8 +33,7 @@ (global-set-key (kbd "M-RET") 'toggle-frame-fullscreen) ;; use gls if available (which supports --dired option) -(let ((gls "/usr/local/bin/gls")) - (when (file-executable-p gls) - (setq insert-directory-program gls))) +(when (executable-find "gls") + (setq insert-directory-program "gls")) (provide 'init-mac) -- cgit v1.2.3