forked from Superbil/old-emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-dired.el
31 lines (25 loc) · 875 Bytes
/
init-dired.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(require-package 'dired+)
(setq diredp-hide-details-initially-flag nil)
(setq global-dired-hide-details-mode -1)
(defun dired-show-only (regexp)
(interactive "sFiles to show (regexp): ")
(dired-mark-files-regexp regexp)
(dired-toggle-marks)
(dired-do-kill-lines))
(after-load 'dired
(require 'dired+)
(setq dired-recursive-deletes 'top)
(define-key dired-mode-map [mouse-2] 'dired-find-file)
(define-key dired-mode-map (kbd "/") 'dired-show-only))
(defun dired-show-only (regexp)
(interactive "sFiles to show (regexp): ")
(dired-mark-files-regexp regexp)
(dired-toggle-marks)
(dired-do-kill-lines))
(eval-after-load 'dired
'(progn
(require 'dired+)
(setq dired-recursive-deletes 'top)
(define-key dired-mode-map [mouse-2] 'dired-find-file)
(define-key dired-mode-map (kbd "/") 'dired-show-only)))
(provide 'init-dired)