From 25efbc240ca4d9e7410b9f21511cb2426dbb3a13 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 23 Jan 2020 21:51:04 +0900 Subject: [PATCH] Add --lang=en_US extra arg --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 4228eef..63266c8 100644 --- a/emacs.el +++ b/emacs.el @@ -1759,7 +1759,8 @@ Otherwize hook it." ;; M-$ to ispell word ;; M-x flyspell-buffer to highlight all suspicious words (when (executable-find "aspell") - (setq-default ispell-program-name "aspell")) + (set-variable 'ispell-program-name "aspell") + (set-variable 'ispell-extra-args '("--lang=en_US"))) (with-eval-after-load 'ispell (add-to-list 'ispell-skip-region-alist '("[^\000-\377]+")))