diff --git a/config/defaults.org b/config/defaults.org index 9d261ed..c7e1194 100644 --- a/config/defaults.org +++ b/config/defaults.org @@ -159,29 +159,41 @@ * Spell checking #+begin_src emacs-lisp ;; turn on spell checking, if available. - (when (and (require 'ispell nil :noerror) (executable-find ispell-program-name)) - (use-package flyspell - :ensure t - :diminish - :hook ((text-mode . flyspell-mode) - (prog-mode . flyspell-prog-mode)) - :custom - (flyspell-mode-line-string nil) - (flyspell-use-meta-tab nil)) - (use-package flyspell-correct - :ensure t - :diminish - :after flyspell - :bind ( :map flyspell-mode-map - ("C-;" . flyspell-correct-wrapper))) - (use-package consult-flyspell - :ensure t - :diminish - :after (consult flyspell) - :bind ( :map flyspell-mode-map - ("C-c s ;" . consult-flyspell)) - :config - (setq consult-flyspell-always-check-buffer t))) + (use-package ispell + :ensure t + :diminish + :custom + (ispell-dictionary "en_GB")) + + (use-package flyspell + :ensure t + :diminish + :hook ((text-mode . flyspell-mode) + (prog-mode . flyspell-prog-mode)) + :init + (require 'ispell) + :custom + (flyspell-mode-line-string nil) + (flyspell-use-meta-tab nil) + :config + (require 'flyspell-correct) + (require 'consult-flyspell)) + + (use-package flyspell-correct + :ensure t + :diminish + :after flyspell + :bind ( :map flyspell-mode-map + ("C-;" . flyspell-correct-wrapper))) + + (use-package consult-flyspell + :ensure t + :diminish + :after (consult flyspell) + :bind ( :map flyspell-mode-map + ("C-c s ;" . consult-flyspell)) + :config + (setq consult-flyspell-always-check-buffer t)) #+end_src * ibuffer