summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/init-dired.el39
1 files changed, 25 insertions, 14 deletions
diff --git a/config/init-dired.el b/config/init-dired.el
index 160b86b..f27a186 100644
--- a/config/init-dired.el
+++ b/config/init-dired.el
@@ -7,20 +7,31 @@
 
 ;;; Code:
 
-(require 'dired)
-
-(setq dired-clean-up-buffers-too nil)
-(setq dired-dwim-target t)
-(setq dired-hide-details-hide-information-lines nil)
-(setq dired-hide-details-hide-symlink-targets nil)
-(setq dired-listing-switches "-lah")
-(setq dired-recursive-copies 'always)
-(setq dired-recursive-deletes 'always)
-
-(setq dired-no-confirm
- '(byte-compile chgrp chmod chown copy hardlink symlink touch))
-
-;; (dired-omit-mode nil t)
+(use-package dired
+  :ensure nil
+  :defer t
+  :custom
+  (dired-clean-up-buffers-too nil)
+  (dired-dwim-target t)
+  (dired-hide-details-hide-information-lines nil)
+  (dired-hide-details-hide-symlink-targets nil)
+  (dired-listing-switches "-lah")
+  (dired-recursive-copies 'always)
+  (dired-recursive-deletes 'always)
+  (dired-no-confirm
+   '(byte-compile chgrp chmod chown copy hardlink symlink touch)))
+
+(use-package dired-git-info
+  :ensure t
+  :defer t
+  :bind (:map dired-mode-map
+              (")" . dired-git-info-mode)))
+
+(use-package nerd-icons-dired
+  :ensure t
+  :defer t
+  :diminish
+  :hook (dired-mode . nerd-icons-dired-mode))
 
 (provide 'init-dired)