(require-package 'dired+)
(require-package 'dired-sort)

(setq-default diredp-hide-details-initially-flag nil
              dired-dwim-target t)

;; Prefer g-prefixed coreutils version of standard utilities when available
(let ((gls (executable-find "gls")))
  (when gls (setq insert-directory-program gls)))

(after-load 'dired
  (require 'dired+)
  (require 'dired-sort)
  (when (fboundp 'global-dired-hide-details-mode)
    (global-dired-hide-details-mode -1))
  (setq dired-recursive-deletes 'top)
  (define-key dired-mode-map [mouse-2] 'dired-find-file)
  (add-hook 'dired-mode-hook
            (lambda () (guide-key/add-local-guide-key-sequence "%"))))

(when (maybe-require-package 'diff-hl)
  (after-load 'dired
    (add-hook 'dired-mode-hook 'diff-hl-dired-mode)))

(provide 'init-dired)

(require-package 'dired-sort)

(setq-default dired-dwim-target t)

;; Prefer g-prefixed coreutils version of standard utilities when available
(let ((gls (executable-find "gls")))
  (when gls (setq insert-directory-program gls)))

(when (maybe-require-package 'diredfl)
  (add-hook 'dired-mode-hook 'diredfl-mode))

(after-load 'dired
  (require 'dired-sort)
  (setq dired-recursive-deletes 'top)
  (define-key dired-mode-map [mouse-2] 'dired-find-file)
  (add-hook 'dired-mode-hook
            (lambda () (guide-key/add-local-guide-key-sequence "%"))))

(when (maybe-require-package 'diff-hl)
  (after-load 'dired
    (add-hook 'dired-mode-hook 'diff-hl-dired-mode)))

(provide 'init-dired)

Drop dired+ and use diredfl for enhanced font-locking
Drop dired+ and use diredfl for enhanced font-locking

benkha/emacs.d,blueabysm/emacs.d,blueseason/emacs.d,me020523/emacs.d,braveoyster/emacs.d,purcell/emacs.d,kindoblue/emacs.d,qianwan/emacs.d,wegatron/emacs.d,cjqw/emacs.d,dcorking/emacs.d,baohaojun/emacs.d,arthurl/emacs.d,sgarciac/emacs.d,roxolan/emacs.d,emuio/emacs.d,svenyurgensson/emacs.d,kongfy/emacs.d,gsmlg/emacs.d,mmqmzk/emacs.d,lust4life/emacs.d,krzysz00/emacs.d