summaryrefslogtreecommitdiff
path: root/dotfiles-darwin
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-11-08 18:07:46 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2020-11-08 18:07:46 +0000
commit241022b046bcbc8673acf9efc8267a9bb147e139 (patch)
tree7c36327cf01575685e669c1ffefc6def3863b4de /dotfiles-darwin
parentd6ad5668eebab8dd0a012115f324d7a36cf15cfa (diff)
darwin/emacs: Use executable-find to find gls
Diffstat (limited to 'dotfiles-darwin')
-rw-r--r--dotfiles-darwin/emacs/init.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el
index a992874..fd37171 100644
--- a/dotfiles-darwin/emacs/init.el
+++ b/dotfiles-darwin/emacs/init.el
@@ -1,5 +1,4 @@
(setq mac-right-option-modifier 'none)
-(let ((gnu-ls "/usr/local/bin/gls"))
- (when (file-exists-p gnu-ls)
- (setq insert-directory-program gnu-ls)))
+(when (executable-find "gls")
+ (setq insert-directory-program "gls"))