blob: 292a7f979c9d260734aefd80141f4224f95eedcd (
plain) (
tree)
|
|
;;; my-text.el --- configures
;;; Commentary:
;;; Code:
(require 'use-package)
(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")
(ispell-extra-args '("--camel-case")))
(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 'my-text)
;;; my-text.el ends here
|