Add modules/feature/spellcheck
This commit is contained in:
parent
85d9fe088b
commit
f3633f4f99
2 changed files with 45 additions and 0 deletions
31
modules/feature/spellcheck/config.el
Normal file
31
modules/feature/spellcheck/config.el
Normal file
|
@ -0,0 +1,31 @@
|
|||
;;; feature/spellcheck/config.el
|
||||
|
||||
(@def-package flyspell ; built-in
|
||||
:commands flyspell-mode
|
||||
:init (@add-hook text-mode 'flyspell-mode))
|
||||
|
||||
|
||||
(@def-package flyspell-correct
|
||||
:commands (flyspell-correct-word-generic
|
||||
flyspell-correct-previous-word-generic))
|
||||
|
||||
|
||||
(@def-package flyspell-correct-popup
|
||||
:after flyspell-correct
|
||||
:config
|
||||
(setq flyspell-popup-correct-delay 0.8)
|
||||
(add-hook 'flyspell-mode-hook 'flyspell-popup-auto-correct-mode))
|
||||
|
||||
|
||||
(@def-package flyspell-correct-ivy
|
||||
:when (@featurep :completion ivy)
|
||||
:after flyspell-correct)
|
||||
|
||||
(@def-package flyspell-correct-helm
|
||||
:when (@featurep :completion helm)
|
||||
:after flyspell-correct)
|
||||
|
||||
(@def-package flyspell-correct-ido
|
||||
:when (@featurep :emacs ido)
|
||||
:after flyspell-correct)
|
||||
|
14
modules/feature/spellcheck/packages.el
Normal file
14
modules/feature/spellcheck/packages.el
Normal file
|
@ -0,0 +1,14 @@
|
|||
;; -*- no-byte-compile: t; -*-
|
||||
;;; feature/spellcheck/packages.el
|
||||
|
||||
(@package flyspell-correct)
|
||||
(@package flyspell-correct-popup)
|
||||
|
||||
(cond ((@featurep :completion ivy)
|
||||
(@package flyspell-correct-ivy))
|
||||
((@featurep :completion helm)
|
||||
(@package flyspell-correct-helm))
|
||||
((@featurep :emacs ido)
|
||||
(@package flyspell-correct-ido)))
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue