summaryrefslogtreecommitdiff
path: root/emacs/custom/my-text.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/my-text.el')
-rw-r--r--emacs/custom/my-text.el13
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)