diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-18 17:54:33 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-18 17:54:52 -0700 |
commit | 57b2e8286d7f1e32c2e1d9c98c2a7ab8f81b9f2b (patch) | |
tree | c2973811e250b7baa09c9863ab5a9ec6ae69336e /emacs | |
parent | elfeed: new site (diff) | |
download | emacs.d-57b2e8286d7f1e32c2e1d9c98c2a7ab8f81b9f2b.tar.gz |
dired: move configuration to its own module
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/my-dired.el | 19 | ||||
-rw-r--r-- | emacs/custom/my-navigation.el | 26 | ||||
-rw-r--r-- | emacs/init.el | 1 |
3 files changed, 20 insertions, 26 deletions
diff --git a/emacs/custom/my-dired.el b/emacs/custom/my-dired.el new file mode 100644 index 0000000..8dba7a0 --- /dev/null +++ b/emacs/custom/my-dired.el @@ -0,0 +1,19 @@ +;;; my-dired.el --- Configure parts related to navigation + +;;; Commentary: + +;;; Code: + +(require 'dired) +(require 'ls-lisp) + +(setq-default dired-dwim-target t) +(setq-default dired-listing-switches "-alh") +(setq dired-recursive-deletes 'always) +(setq dired-recursive-copies 'always) + +(setq ls-lisp-use-insert-directory-program nil) +(setq ls-lisp-dirs-first t) + +(provide 'my-dired) +;;; my-dired.el ends here diff --git a/emacs/custom/my-navigation.el b/emacs/custom/my-navigation.el index 7c09de6..356a6c9 100644 --- a/emacs/custom/my-navigation.el +++ b/emacs/custom/my-navigation.el @@ -23,32 +23,6 @@ :custom (bookmark-save-flag 1)) -(use-package ls-lisp - :ensure nil - :custom - (ls-lisp-use-insert-directory-program nil) - (ls-lisp-dirs-first t)) - -(use-package dired - :defer t - :bind (("C-x C-d" . dired) - ("C-x C-j" . dired-jump)) - :init - (setq-default dired-dwim-target t) - (setq-default dired-listing-switches "-alh") - (setq dired-recursive-deletes 'always) - (setq dired-recursive-copies 'always)) - -(use-package dired-x - :ensure nil - :hook ((dired-mode . dired-omit-mode)) - :config - (setq dired-omit-verbose nil) - ;; hide backup, autosave, *.*~ files - ;; omit mode can be toggled using `C-x M-o' in dired buffer. - (setq dired-omit-files - (concat dired-omit-files "\\|^.DS_Store$\\|^.localized$\\|^.projectile$\\|^.git$"))) - (use-package ibuffer :bind ("C-x C-b" . ibuffer)) diff --git a/emacs/init.el b/emacs/init.el index fced6d5..26f5132 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -43,6 +43,7 @@ (require 'my-settings) (require 'my-ui) +(require 'my-dired) (require 'my-navigation) (require 'my-completion) (require 'my-edit) |