From 0f138d2f9d71a65594f90104550301175fb6afb8 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 23 Jan 2020 13:58:22 +0900 Subject: [PATCH] Add flyspell configs --- emacs.el | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 5e4eb9b..48135c2 100644 --- a/emacs.el +++ b/emacs.el @@ -1726,10 +1726,22 @@ Otherwize hook it." (add-hook 'markdown-mode-hook (lambda () (outline-minor-mode 1) - (flyspell-mode) (set (make-local-variable 'comment-start) ";"))) ) +;; http://keisanbutsuriya.hateblo.jp/entry/2015/02/10/152543 +(when (executable-find "aspell") + (setq-default ispell-program-name "aspell")) +(with-eval-after-load 'ispell + (add-to-list 'ispell-skip-region-alist '("[^\000-\377]+"))) + +(when (fboundp 'flyspell-mode) + (add-hook 'text-mode-hook + 'flyspell-mode)) +(when (fboundp 'flyspell-prog-mode) + (add-hook 'prog-mode-hook + 'flyspell-prog-mode)) + ;; c-mode ;; http://www.emacswiki.org/emacs/IndentingC ;; http://en.wikipedia.org/wiki/Indent_style