From 7d87ccd5947e3a3096728579754400a256f0bf26 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Mon, 30 Aug 2021 18:00:30 +0200 Subject: [PATCH] Enchant-2 (used by default) freezes emacs --- modules/emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/emacs.el b/modules/emacs.el index 6601f96..d76ea36 100644 --- a/modules/emacs.el +++ b/modules/emacs.el @@ -461,6 +461,11 @@ (((text-mode org-mode) . flyspell-mode) (prog-mode . flyspell-prog-mode)) :config + (if (executable-find "aspell") + (progn + (setq-default ispell-program-name "aspell") + (setq-default ispell-extra-args '("--sug-mode=ultra" "--camel-case"))) + (setq-default ispell-program-name "hunspell")) (unbind-key "C-M-i" flyspell-mode-map)) ;; -----------------------------------------------------------------------------------------------