diff options
author | Martin Polden <martin.polden@gmail.com> | 2014-06-14 13:05:41 +0200 |
---|---|---|
committer | Martin Polden <martin.polden@gmail.com> | 2014-06-14 13:15:12 +0200 |
commit | 11d490d1ba438f620cca23892c6d468924471c19 (patch) | |
tree | b7fb3b910393c3b644b4add8acd7573930b38981 | |
parent | 8d097fbd34a8b4354ef81402fc7465c54dc39d83 (diff) |
Use PATH when checking for gls
-rw-r--r-- | lisp/init-mac.el | 5 |
1 files changed, 2 insertions, 3 deletions
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) |