remove redundancy with :hook declarations
This commit is contained in:
parent
f12707c620
commit
2030842739
12
init.el
12
init.el
@ -174,15 +174,13 @@
|
|||||||
|
|
||||||
(use-package electric-pair
|
(use-package electric-pair
|
||||||
:defer t
|
:defer t
|
||||||
:hook
|
:hook prog-mode)
|
||||||
((prog-mode) . electric-pair-mode))
|
|
||||||
|
|
||||||
;;; Aggressive Indent
|
;;; Aggressive Indent
|
||||||
(use-package aggressive-indent
|
(use-package aggressive-indent
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:defer t
|
||||||
:hook
|
:hook prog-mode)
|
||||||
(prog-mode . aggressive-indent-mode))
|
|
||||||
|
|
||||||
;;; Man
|
;;; Man
|
||||||
|
|
||||||
@ -211,8 +209,8 @@
|
|||||||
:map ibuffer-mode-map
|
:map ibuffer-mode-map
|
||||||
("q" . user-ibuffer-quit))
|
("q" . user-ibuffer-quit))
|
||||||
:hook
|
:hook
|
||||||
((ibuffer-mode) . ibuffer-auto-mode)
|
(ibuffer-mode . ibuffer-auto-mode)
|
||||||
((ibuffer-auto-mode) . ibuffer-set-filter-groups-by-mode)
|
(ibuffer-auto-mode . ibuffer-set-filter-groups-by-mode)
|
||||||
:config
|
:config
|
||||||
(fuco1-special-beginning-of-buffer ibuffer (ibuffer-forward-line 1))
|
(fuco1-special-beginning-of-buffer ibuffer (ibuffer-forward-line 1))
|
||||||
(fuco1-special-end-of-buffer ibuffer (ibuffer-backward-line 1)))
|
(fuco1-special-end-of-buffer ibuffer (ibuffer-backward-line 1)))
|
||||||
@ -236,7 +234,7 @@
|
|||||||
(use-package dired
|
(use-package dired
|
||||||
:defer t
|
:defer t
|
||||||
:hook
|
:hook
|
||||||
((dired-mode) . dired-hide-details-mode)
|
(dired-mode . dired-hide-details-mode)
|
||||||
:init
|
:init
|
||||||
(setq dired-listing-switches "-la --group-directories-first")
|
(setq dired-listing-switches "-la --group-directories-first")
|
||||||
(setq dired-recursive-copies 'always)
|
(setq dired-recursive-copies 'always)
|
||||||
|
Loading…
Reference in New Issue
Block a user