summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-dired.el19
-rw-r--r--emacs/custom/my-navigation.el26
-rw-r--r--emacs/init.el1
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)