dired: Group directories first
This commit is contained in:
14
init.el
14
init.el
@@ -396,7 +396,6 @@
|
||||
|
||||
;;; Dired and ls-lisp
|
||||
|
||||
(with-eval-after-load 'dired
|
||||
(setq dired-free-space nil
|
||||
dired-dwim-target t ; Propose a target for intelligent moving/copying
|
||||
dired-deletion-confirmer 'y-or-n-p
|
||||
@@ -421,23 +420,22 @@
|
||||
(setq dired-omit-files (concat "\\`[.]\\'"))
|
||||
|
||||
;; Group directories first
|
||||
(let ((args (list "--group-directories-first" "-ahlv")))
|
||||
(let ((args "--group-directories-first -ahlv"))
|
||||
(when (featurep :system 'bsd)
|
||||
(if-let* ((gls (executable-find "gls")))
|
||||
(setq insert-directory-program gls)
|
||||
(setq args (list (car args)))))
|
||||
(setq dired-listing-switches (string-join args " "))))
|
||||
(setq args nil)))
|
||||
(when args
|
||||
(setq dired-listing-switches args)))
|
||||
|
||||
(with-eval-after-load 'ls-lisp
|
||||
(setq ls-lisp-verbosity nil)
|
||||
(setq ls-lisp-dirs-first t))
|
||||
(setq ls-lisp-dirs-first t)
|
||||
|
||||
;;; Ediff
|
||||
|
||||
(with-eval-after-load 'ediff
|
||||
;; Configure Ediff to use a single frame and split windows horizontally
|
||||
(setq ediff-window-setup-function 'ediff-setup-windows-plain
|
||||
ediff-split-window-function 'split-window-horizontally))
|
||||
ediff-split-window-function 'split-window-horizontally)
|
||||
|
||||
;;; Help
|
||||
|
||||
|
||||
Reference in New Issue
Block a user