diff options
Diffstat (limited to 'lisp/init-mac.el')
-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) |