Skip to content

Commit

Permalink
Revise use of gls
Browse files Browse the repository at this point in the history
- osx layer already chooses gls by preference

- revise use of switches to avoid glitchy colour escapes in dired
  • Loading branch information
ViktorHaag committed Nov 7, 2023
1 parent 3e6d1b5 commit 8d3fb17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions private/.spacemacs
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,11 @@ If you are unsure, try setting them in `dotspacemacs/user-config' first."
)
))

;; explicitly set gls for instert-directory-program, to get the
;; formatting switches we want
;; If using osx layer and gls, set the formatting switches we want
(when (spacemacs/system-is-mac)
(let ((gls (executable-find "gls")))
(when gls
(setq insert-directory-program gls
dired-listing-switches "-aBhl --color --group-directories-first"))))
(setq dired-listing-switches "-ahl --group-directories-first"))))
)

(defun dotspacemacs/user-load ()
Expand Down

0 comments on commit 8d3fb17

Please sign in to comment.