diff options
author | Case Duckworth | 2021-03-12 12:48:36 -0600 |
---|---|---|
committer | Case Duckworth | 2021-03-12 12:48:36 -0600 |
commit | 6e5afcf8219e977bba912da7cd1895b360862acd (patch) | |
tree | a920fef7c3372913fea6b06774a6b547aa53f023 | |
parent | Toggle `truncate-lines' and fix parens (diff) | |
download | emacs-6e5afcf8219e977bba912da7cd1895b360862acd.tar.gz emacs-6e5afcf8219e977bba912da7cd1895b360862acd.zip |
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.
-rw-r--r-- | init.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.el b/init.el index 33cda1c..ee57b11 100644 --- a/init.el +++ b/init.el | |||
@@ -51,7 +51,7 @@ | |||
51 | (empty indentation space-before-tab space-after-tab)) | 51 | (empty indentation space-before-tab space-after-tab)) |
52 | (indent-tabs-mode t) | 52 | (indent-tabs-mode t) |
53 | (tab-width 8))) | 53 | (tab-width 8))) |
54 | (add-hook 'before-save-hook #'whitespace-cleanup) | 54 | (acdw/hooks before-save-hook whitespace-cleanup) |
55 | 55 | ||
56 | ;; Pairs | 56 | ;; Pairs |
57 | (add-hook 'prog-mode-hook #'electric-pair-local-mode) | 57 | (add-hook 'prog-mode-hook #'electric-pair-local-mode) |