(use-package flyspell :hook ((text-mode . flyspell-mode) (prog-mode . flyspell-prog-mode)) :config (setq ispell-dictionary "en_US") (when (executable-find "aspell") (setq ispell-program-name "aspell")) (use-package flyspell-correct :after (flyspell) :commands (flyspell-correct-word-generic flyspell-correct-previous-word-generic) :bind (:map flyspell-mode-map ("C-;" . flyspell-correct-previous-word-generic)))) (use-package markdown-mode :ensure t :after (flyspell) :commands (markdown-mode gfm-mode) :mode (("README\\.md\\'" . gfm-mode) ("\\.md\\'" . gfm-mode) ("\\.markdown\\'" . gfm-mode))) (provide 'fcuny-text)