(eval-when-compile (require 'use-package)) (use-package ispell :ensure t :config (when (executable-find "aspell") (setq ispell-program-name "aspell" ispell-list-command "--list"))) (use-package flyspell-correct :ensure t) (use-package flyspell :ensure t :hook ((text-mode-hook . flyspell-mode) (prog-mode-hook . flyspell-prog-mode))) (use-package markdown-mode :ensure t :after (flyspell) :mode (("\\.md\\'" . gfm-mode) ("\\.markdown\\'" . gfm-mode)) :hook (markdown-mode . flyspell-mode) :init (setq markdown-command "pandoc -f markdown_github -c https://goo.gl/OVmlwT --self-contained" markdown-header-scaling 't) :config (add-hook 'gfm-mode-hook 'visual-line-mode)) (provide 'fcuny-text)