From 9f656fdbcdcbc155864b8bebe474ed29af39ff76 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 22 Apr 2017 16:21:40 +0200 Subject: Emacs: Fix error initialising flyspell-prog-mode --- emacs/.emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 2003d9de..a15a0c03 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -2190,7 +2190,7 @@ I derived a mode for twig, in order to use its =mode-hook=. (use-package flyspell :config (progn (add-hook 'text-mode-hook (lambda () (flyspell-mode +1))) - (add-hook 'prog-mode-hook (lambda () (flyspell-prog-mode +1))))) + (add-hook 'prog-mode-hook #'flyspell-prog-mode))) #+END_SRC * Scripting -- cgit 1.4.1