From 67c2168998c829c8739a0a4f73ab9d6117d07f0a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 16 Feb 2019 14:10:22 -0800 Subject: [emacs] Split configuration in multiple files. This is actually an easier thing to maintain. --- emacs.d/custom/fcuny-text.el | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 emacs.d/custom/fcuny-text.el (limited to 'emacs.d/custom/fcuny-text.el') diff --git a/emacs.d/custom/fcuny-text.el b/emacs.d/custom/fcuny-text.el new file mode 100644 index 0000000..37a1338 --- /dev/null +++ b/emacs.d/custom/fcuny-text.el @@ -0,0 +1,25 @@ +(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) -- cgit 1.4.1