summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-05-04 10:20:38 -0700
committerFranck Cuny <franck@fcuny.net>2024-05-04 10:20:38 -0700
commita9c6b364dd905629448978c46e154323b3be044a (patch)
treea7317c4d8203d3ecd976668b64b6272af2bee3c3
parentcolors for eldoc-box (diff)
downloademacs.d-a9c6b364dd905629448978c46e154323b3be044a.tar.gz
configure dired to ignore some files
-rw-r--r--config/init-dired.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/init-dired.el b/config/init-dired.el
index ecbfb5d..8278c49 100644
--- a/config/init-dired.el
+++ b/config/init-dired.el
@@ -10,7 +10,11 @@
 (use-package dired
   :ensure nil
   :defer t
+  :config
+  (setq dired-omit-files "^__pycache__$")
   :custom
+  (dired-use-ls-dired t)
+  (insert-directory-program "/etc/profiles/per-user/fcuny/bin/ls")
   (dired-clean-up-buffers-too nil)
   (dired-dwim-target t)
   (dired-hide-details-hide-information-lines nil)
@@ -20,6 +24,10 @@
   (dired-no-confirm
    '(byte-compile chgrp chmod chown copy hardlink symlink touch)))
 
+(use-package dired-x
+  :after dired
+  :hook ((dired-mode . dired-omit-mode)))
+
 (provide 'init-dired)
 
 ;;; init-dired.el ends here