Emacs: Configure more multi dicts.

This commit is contained in:
tastytea 2020-08-22 20:55:23 +02:00
parent 22da20bf74
commit 9af5bdfbc7
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-08-22T20:50:31+0200>
;; Time-stamp: <2020-08-22T20:54:31+0200>
;;; Commentary:
@ -86,14 +86,16 @@
;; spell checking.
(use-package ispell
:straight nil
;; Use hunspell with multiple dictionaries if possible.
;; Use hunspell if possible and configure multiple dictionaries.
;; <https://200ok.ch/posts/2020-08-22_setting_up_spell_checking_with_multiple_dictionaries.html>
:config (when (executable-find "hunspell")
(customize-set-variable 'ispell-program-name
(executable-find "hunspell"))
;; (customize-set-variable 'ispell-dictionary "en_US,de_DE")
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "en_US,de_DE")))
(ispell-hunspell-add-multi-dic "en_US,de_DE")
(ispell-hunspell-add-multi-dic "en_GB,de_DE")
(ispell-hunspell-add-multi-dic "de_DE,de_AT,de_CH")))
;; Interactive spell checking.
(unless slow-computer