From f1ac6d966786b119212c9cb72a20b41aa9afcb2e Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sat, 11 Feb 2023 18:40:28 +0100 Subject: [PATCH] Define ispell package --- bundle/bundle--package.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bundle/bundle--package.el b/bundle/bundle--package.el index 45294fed..84957001 100644 --- a/bundle/bundle--package.el +++ b/bundle/bundle--package.el @@ -249,6 +249,21 @@ (use-package nim-mode :mode "\\.nim\\'") +(use-package ispell + :ensure nil + :custom + ;; On windows: Copy files from ~/.emacs.d/dicts/ to c:/msys64/mingw64/share/dict/ooo/ + (ispell-dictionary "german,english") + (ispell-local-dictionary-alist + '(("german" "[[:alpha:]]" "[^[:alpha:]]" "[']" t ("-d" "de_DE_frami,de_AT_frami,de_CH_frami") nil utf-8) + ("english" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_US,en_GB") nil utf-8) + ("german,english" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "de_DE_frami,en_US") nil utf-8))) + (ispell-hunspell-dictionary-alist ispell-local-dictionary-alist) + :config + (if (eq system-type 'windows-nt) + (setq ispell-program-name "c:/msys64/mingw64/bin/hunspell.exe") + (setq ispell-program-name "hunspell"))) + (require 'ido) (ido-mode t)