2017-06-08 11:47:56 +02:00
|
|
|
;;; feature/spellcheck/config.el -*- lexical-binding: t; -*-
|
2017-02-13 05:51:29 -05:00
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(def-package! flyspell ; built-in
|
2017-02-13 05:51:29 -05:00
|
|
|
:commands flyspell-mode
|
2017-02-19 18:32:26 -05:00
|
|
|
:config
|
|
|
|
(setq ispell-program-name (executable-find "aspell")
|
|
|
|
ispell-list-command "--list"
|
2017-05-27 14:49:06 +02:00
|
|
|
ispell-extr-args '("--dont-tex-check-comments")))
|
2017-02-13 05:51:29 -05:00
|
|
|
|
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(def-package! flyspell-correct
|
2017-02-13 05:51:29 -05:00
|
|
|
:commands (flyspell-correct-word-generic
|
2017-03-19 22:47:50 -04:00
|
|
|
flyspell-correct-previous-word-generic)
|
2017-02-13 05:51:29 -05:00
|
|
|
:config
|
2017-03-19 22:47:50 -04:00
|
|
|
(cond ((featurep! :completion helm)
|
|
|
|
(require 'flyspell-correct-helm))
|
|
|
|
((featurep! :completion ivy)
|
|
|
|
(require 'flyspell-correct-ivy))
|
|
|
|
(t
|
|
|
|
(require 'flyspell-correct-popup)
|
|
|
|
(setq flyspell-popup-correct-delay 0.8)
|
2017-04-17 02:17:10 -04:00
|
|
|
(define-key popup-menu-keymap [escape] #'keyboard-quit))))
|
2017-02-21 16:48:19 -05:00
|
|
|
|