From 0a21a2816576237773438361b01169d98dd1cab8 Mon Sep 17 00:00:00 2001 From: Uri Sharf Date: Mon, 4 May 2015 19:36:02 +0200 Subject: [PATCH] Make dired use coreutils' gls, if installed --- contrib/osx/packages.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/osx/packages.el b/contrib/osx/packages.el index 8d291ea45..d93ed59cb 100644 --- a/contrib/osx/packages.el +++ b/contrib/osx/packages.el @@ -3,6 +3,13 @@ pbcopy )) +(if (executable-find "gls") + ; maybe absolute or relative name of the `ls' program used by `insert-directory'. + ; brew info coreutils + (setq insert-directory-program "gls" + dired-listing-switches "-aBhl --group-directories-first") + (setq dired-use-ls-dired nil)) + (defun osx/init-pbcopy () (use-package pbcopy :if (not (display-graphic-p))