From 2030842739b9fa6df8d0ffbc3db237834c73c808 Mon Sep 17 00:00:00 2001 From: zdm Date: Mon, 8 Feb 2021 00:29:48 -0700 Subject: [PATCH] remove redundancy with :hook declarations --- init.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index da153d9..51d7bad 100644 --- a/init.el +++ b/init.el @@ -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)