summary refs log tree commit diff
path: root/config/init-base.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-08-30 17:55:32 -0700
committerFranck Cuny <franck@fcuny.net>2024-08-30 17:55:32 -0700
commitb73353dba56c220ee68feceb92cf15d3b17d6dfb (patch)
treec47a67fd964bd85f32293ae371cd759d6326e8f1 /config/init-base.el
parentmove a few more things to init-window.el (diff)
downloademacs.d-b73353dba56c220ee68feceb92cf15d3b17d6dfb.tar.gz
a mix of stuff for denote / org / dired
Diffstat (limited to '')
-rw-r--r--config/init-base.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/init-base.el b/config/init-base.el
index 9f9e596..d2c83cd 100644
--- a/config/init-base.el
+++ b/config/init-base.el
@@ -102,9 +102,11 @@
 (use-package dired
   :ensure nil
   :defer t
-  :config
-  (setq dired-omit-files "^__pycache__$")
+  :hook (dired-mode . dired-omit-mode)
+  :bind (:map dired-mode-map
+              ( "."     . dired-omit-mode))
   :custom
+  (dired-omit-files (rx (seq bol ".")))
   (dired-use-ls-dired t)
   (insert-directory-program "/etc/profiles/per-user/fcuny/bin/ls")
   (dired-clean-up-buffers-too nil)
@@ -116,10 +118,6 @@
   (dired-no-confirm
    '(byte-compile chgrp chmod chown copy hardlink symlink touch)))
 
-(use-package dired-x
-  :after dired
-  :hook ((dired-mode . dired-omit-mode)))
-
 (defun my/rename-this-buffer-and-file ()
   "Renames current buffer and file it is visiting."
   (interactive)