2 ms·
Basically just start flyspell mode in the modes you prefer including only for comments with flyspell-prog-mode and configure as desired. (use-package flysp
by michaelmrose 8y ago
Basically just start flyspell mode in the modes you prefer including only for comments with flyspell-prog-mode and configure as desired.
(use-package flyspell
:config
(setq ispell-program-name "/usr/sbin/aspell")
(setq flyspell-consider-dash-as-word-delimiter-flag t)
(define-key flyspell-mode-map (kbd "C-:") 'flyspell-correct-wrapper)
)
(use-package flyspell-correct)
(use-package flyspell-correct-ivy)
you may want a binding to add the word at point to your dictionary I swiped this function for somewhere
(defun my-save-word ()
(interactive)
(let ((current-location (point))
(word (flyspell-get-word)))
(when (consp word)
(flyspell-do-correct 'save nil (car word) current-location (cadr word) (caddr word) current-location))))