summaryrefslogtreecommitdiffstats
path: root/lisp/init-mac.el
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2014-06-14 13:05:41 +0200
committerMartin Polden <martin.polden@gmail.com>2014-06-14 13:15:12 +0200
commit11d490d1ba438f620cca23892c6d468924471c19 (patch)
treeb7fb3b910393c3b644b4add8acd7573930b38981 /lisp/init-mac.el
parent8d097fbd34a8b4354ef81402fc7465c54dc39d83 (diff)
Use PATH when checking for gls
Diffstat (limited to 'lisp/init-mac.el')
-rw-r--r--lisp/init-mac.el5
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)