-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgs-fm.el
93 lines (83 loc) · 2.49 KB
/
gs-fm.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
;;; -*- lexical-binding: t -*-
(use-package autorevert
:custom
(auto-revert-stop-on-user-input nil)
(auto-revert-verbose nil)
(global-auto-revert-non-file-buffers t)
:init
(global-auto-revert-mode t)
:preface
(add-to-list 'window-state-change-functions
(defun xenodium/window-state-state-change (state)
"Enable `global-auto-revert-mode' per active window."
(let* ((old-selected-window (old-selected-window))
(old-buffer (when old-selected-window
(window-buffer old-selected-window)))
(selected-window (selected-window))
(new-buffer (when selected-window
(window-buffer selected-window))))
(when old-buffer
(with-current-buffer old-buffer
(when buffer-file-name
(auto-revert-mode -1))))
(when new-buffer
(with-current-buffer new-buffer
(when buffer-file-name
(auto-revert-mode +1)))))))
)
(use-package dired
:custom
(dired-auto-revert-buffer t)
(dired-clean-confirm-killing-deleted-buffers nil)
(dired-dwim-target t)
(dired-kill-when-opening-new-dired-buffer t)
(dired-listing-switches "-agho --group-directories-first") ;;1
(dired-maybe-use-globstar t)
(dired-mouse-drag-files t)
(dired-recursive-copies 'always)
:defer t
)
(use-package dired-aux
:after dired
:custom
(dired-do-revert-buffer t)
)
(use-package dired-async
:hook
(dired-mode . dired-async-mode)
)
(use-package emacs
:custom
(delete-by-moving-to-trash t)
)
(use-package mouse
:custom
(mouse-drag-and-drop-region-cross-program t)
)
(use-package nov
:custom
(nov-header-line-format nil)
:ensure t
)
(use-package ready-player
:vc (:url "https://github.com/xenodium/ready-player")
:custom
(ready-player-previous-icon "")
(ready-player-play-icon "")
(ready-player-stop-icon "")
(ready-player-next-icon "")
(ready-player-search-icon "")
(ready-player-set-global-bindings nil)
(ready-player-shuffle-icon "")
(ready-player-open-externally-icon "")
(ready-player-repeat-icon "")
(ready-player-autoplay-icon "")
:ensure t
:hook
(dired-mode . ready-player-mode)
)
(use-package show-font
:vc (:url "https://github.com/protesilaos/show-font")
:ensure t
)
(provide 'gs-fm)