From 88ab401adc83bea6e1f571c54093dbc7f521e080 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 4 Jan 2021 19:52:04 -0800 Subject: emacs: rename the directory --- emacs/custom/fcuny-text.el | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 emacs/custom/fcuny-text.el (limited to 'emacs/custom/fcuny-text.el') diff --git a/emacs/custom/fcuny-text.el b/emacs/custom/fcuny-text.el new file mode 100644 index 0000000..45198a1 --- /dev/null +++ b/emacs/custom/fcuny-text.el @@ -0,0 +1,31 @@ +(use-package flyspell + :ensure t + :if (executable-find "aspell") + :hook ((text-mode . flyspell-mode) + (prog-mode . flyspell-prog-mode)) + :custom + (ispell-dictionary "en_US") + (ispell-program-name "aspell") + :config + (use-package flyspell-correct-ivy + :after flyspell + :ensure t + :bind (:map flyspell-mode-map + ("C-M-:" . flyspell-correct-at-point)) + :custom + (flyspell-correct-interface #'flyspell-correct-ivy))) + +(use-package markdown-mode + :ensure t + :after (flyspell) + :commands (markdown-mode gfm-mode) + :mode (("README\\.md\\'" . gfm-mode) + ("\\.md\\'" . gfm-mode) + ("\\.markdown\\'" . gfm-mode)) + :custom + (markdown-fontify-code-blocks-natively t) + :config + (when (executable-find "pandoc") + (setq markdown-command "pandoc -f markdown -t html"))) + +(provide 'fcuny-text) -- cgit 1.4.1