From 299c51a29830cb0fbbf1734648fce394de3eec54 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 26 Apr 2022 19:24:44 -0700 Subject: text: further simplification --- emacs/custom/my-text.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'emacs') 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) -- cgit 1.4.1