all repos — archive/dotfiles @ 9f656fdbcdcbc155864b8bebe474ed29af39ff76

Superseded by nixfiles

Emacs: Fix error initialising flyspell-prog-mode
Alan Pearce alan@alanpearce.uk
Sat, 22 Apr 2017 16:21:40 +0200
commit

9f656fdbcdcbc155864b8bebe474ed29af39ff76

parent

7e21e4ccc85a2a119d4ad090031071caa08fa5bc

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2190,7 +2190,7 @@ #+BEGIN_SRC emacs-lisp (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