From 6e5afcf8219e977bba912da7cd1895b360862acd Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 12 Mar 2021 12:48:36 -0600 Subject: Change `add-hook' to `acdw/hooks' I need to rewrite `acdw/hooks' to mirror the rest of the `acdw/' functions -- i.e., it should accept a list of lists, where the car of each list is a hook (or list of hooks) and the cdr is the function (or list of functions) to bind there. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 33cda1c..ee57b11 100644 --- a/init.el +++ b/init.el @@ -51,7 +51,7 @@ (empty indentation space-before-tab space-after-tab)) (indent-tabs-mode t) (tab-width 8))) -(add-hook 'before-save-hook #'whitespace-cleanup) +(acdw/hooks before-save-hook whitespace-cleanup) ;; Pairs (add-hook 'prog-mode-hook #'electric-pair-local-mode) -- cgit 1.4.1-21-gabe81