-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdired.el
39 lines (34 loc) · 1.46 KB
/
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
32
33
34
35
36
37
38
39
(use-package dired-x
:bind ("C-x C-d" . dired-jump)
:config
(setq dired-omit-files
(concat dired-omit-files "\\|^\\..+$"))
(setq dired-guess-shell-alist-user '(
("\\.pdf\\'" "zathura")
("\\.djvu\\'" "zathura")
("\\.mp4\\'" "mpv")
("\\.aac\\'" "mpv --player-operation-mode=pseudo-gui")
("\\.mov\\'" "mpv")
("\\.mkv\\'" "mpv")
("\\.avi\\'" "mpv")
("\\.wmv\\'" "mpv")
("\\.html\\'" "firefox")
("\\.docx\\'" "abiword")
;; ("\\.jpe?g\\'" "imv-wayland")
;; ("\\.png\\'" "imv-wayland")
)))
(setq dired-dwim-target t)
(use-package dired-du
:ensure t)
(setq dired-isearch-filenames 'dwim
dired-listing-switches "-alh")
(use-package dired-narrow
:ensure t
:bind (:map dired-mode-map
("/" . dired-narrow)))
(use-package dired-open
:if (eq system-type 'gnu/linux)
:config
(setq dired-open-functions '(dired-open-guess-shell-alist dired-open-by-extension dired-open-subdir)))
(autoload 'dired-async-mode "dired-async.el" nil t)
(dired-async-mode 1)