diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-26 19:24:44 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-26 19:24:44 -0700 |
commit | 299c51a29830cb0fbbf1734648fce394de3eec54 (patch) | |
tree | 25aa2200c2c2498417fd397570ddad4789c0434d /emacs | |
parent | tramp: simplify to speed up (diff) | |
download | emacs.d-299c51a29830cb0fbbf1734648fce394de3eec54.tar.gz |
text: further simplification
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/custom/my-text.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el index 3d8c9fd..bf53f26 100644 --- a/emacs/custom/my-text.el +++ b/emacs/custom/my-text.el @@ -4,17 +4,16 @@ ;;; Code: -(require 'flyspell) -(setq ispell-dictionary "en_US" - ispell-program-name "aspell" - ispell-extra-args '("--camel-case")) +(customize-set-variable 'ispell-program-name (executable-find "aspell")) +(customize-set-variable 'ispell-dictionary "en_US") +(customize-set-variable 'ispell-extra-args '("--camel-case")) + (add-hook 'text-mode-hook 'flyspell-mode) (add-hook 'prog-mode-hook 'flyspell-prog-mode) -(require 'markdown-mode) -(setq markdown-fontify-code-blocks-natively t) +(customize-set-variable 'markdown-fontify-code-block-natively t) (when (executable-find "pandoc") - (setq markdown-command "pandoc -f markdown -t html")) + (customize-set-variable 'markdown-command "pandoc -f markdown -t html")) (require 'dabbrev) (require 'abbrev) |