From b73353dba56c220ee68feceb92cf15d3b17d6dfb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 30 Aug 2024 17:55:32 -0700 Subject: a mix of stuff for denote / org / dired --- config/init-base.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'config/init-base.el') 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) -- cgit 1.4.1