From b49611018e91db68fae2d4fd0487e7606398b12a Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 3 Apr 2021 09:44:41 -0500 Subject: Fix typo --- init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 85647e5..62e16c7 100644 --- a/init.el +++ b/init.el @@ -94,10 +94,10 @@ (global-so-long-mode +1) ;; Only fill comments in prog-mode. -(defun-with-hooks '(prog-mode) - (defun hook--auto-fill-prog-mode () - (setq-local comment-auto-fill-only-comments t) - (turn-on-auto-fill))) +(add-hook 'prog-mode-hook + (defun hook--auto-fill-prog-mode () + (setq-local comment-auto-fill-only-comments t) + (turn-on-auto-fill))) ;;;; Whitespace (setc whitespace-style -- cgit 1.4.1-21-gabe81