spell-checking: replace lambda by named function
This commit is contained in:
parent
302ae039da
commit
eafec1989a
|
@ -27,13 +27,13 @@
|
||||||
;; Select the buffer local dictionary if it was set, otherwise
|
;; Select the buffer local dictionary if it was set, otherwise
|
||||||
;; auto-dictionary will replace it with a guessed one at each activation.
|
;; auto-dictionary will replace it with a guessed one at each activation.
|
||||||
;; https://github.com/nschum/auto-dictionary-mode/issues/5
|
;; https://github.com/nschum/auto-dictionary-mode/issues/5
|
||||||
(add-hook 'auto-dictionary-mode-hook
|
(defun spacemacs//adict-set-local-dictionary ()
|
||||||
(lambda ()
|
"Set the local dictionary if not nil."
|
||||||
(when (and
|
(when (and (fboundp 'adict-change-dictionary)
|
||||||
(fboundp 'adict-change-dictionary)
|
|
||||||
ispell-local-dictionary)
|
ispell-local-dictionary)
|
||||||
(adict-change-dictionary ispell-local-dictionary))) 'append)
|
(adict-change-dictionary ispell-local-dictionary)))
|
||||||
)))
|
(add-hook 'auto-dictionary-mode-hook
|
||||||
|
'spacemacs//adict-set-local-dictionary 'append))))
|
||||||
|
|
||||||
(defun spell-checking/init-flyspell ()
|
(defun spell-checking/init-flyspell ()
|
||||||
(use-package flyspell
|
(use-package flyspell
|
||||||
|
|
Loading…
Reference in a new issue