summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-07 15:33:06 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-07 15:33:06 -0700
commit0acb0dfcf24b7cdd52d9dbdc7d24e7bde7483619 (patch)
treea01d71cc82039c8fbb3ba3f8e13a1c110926fd60
parentextra configuration for flyspell (diff)
downloademacs.d-0acb0dfcf24b7cdd52d9dbdc7d24e7bde7483619.tar.gz
better configuration for dired
-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)