1
0

remove redundancy with :hook declarations

This commit is contained in:
zdm 2021-02-08 00:29:48 -07:00
parent f12707c620
commit 2030842739

12
init.el
View File

@ -174,15 +174,13 @@
(use-package electric-pair
:defer t
:hook
((prog-mode) . electric-pair-mode))
:hook prog-mode)
;;; Aggressive Indent
(use-package aggressive-indent
:ensure t
:defer t
:hook
(prog-mode . aggressive-indent-mode))
:hook prog-mode)
;;; Man
@ -211,8 +209,8 @@
:map ibuffer-mode-map
("q" . user-ibuffer-quit))
:hook
((ibuffer-mode) . ibuffer-auto-mode)
((ibuffer-auto-mode) . ibuffer-set-filter-groups-by-mode)
(ibuffer-mode . ibuffer-auto-mode)
(ibuffer-auto-mode . ibuffer-set-filter-groups-by-mode)
:config
(fuco1-special-beginning-of-buffer ibuffer (ibuffer-forward-line 1))
(fuco1-special-end-of-buffer ibuffer (ibuffer-backward-line 1)))
@ -236,7 +234,7 @@
(use-package dired
:defer t
:hook
((dired-mode) . dired-hide-details-mode)
(dired-mode . dired-hide-details-mode)
:init
(setq dired-listing-switches "-la --group-directories-first")
(setq dired-recursive-copies 'always)