summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-22 16:21:40 +0200
committerAlan Pearce2017-04-22 16:21:40 +0200
commit9f656fdbcdcbc155864b8bebe474ed29af39ff76 (patch)
treec99a73d553a438a0a9d430a92c5eaf782f46d6a2 /emacs
parent7e21e4ccc85a2a119d4ad090031071caa08fa5bc (diff)
downloadnixfiles-9f656fdbcdcbc155864b8bebe474ed29af39ff76.tar.lz
nixfiles-9f656fdbcdcbc155864b8bebe474ed29af39ff76.tar.zst
nixfiles-9f656fdbcdcbc155864b8bebe474ed29af39ff76.zip
Emacs: Fix error initialising flyspell-prog-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org2
1 files changed, 1 insertions, 1 deletions
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