diff options
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r-- | emacs/.emacs.d/init.org | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 1031ae2..b57ee51 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -425,9 +425,9 @@ (defun oni:switch-ispell-dictionary () (save-excursion (message-narrow-to-headers-or-head) - (let ((from (message-fetch-field "From"))) - (ispell-change-dictionary - (if (string-match (rx "@aethon.nl>" eol) from) "nl" "en"))))) + (when (string-match (rx (and "@" (or "aethon" "picturefix") ".nl>") eol) + (message-fetch-field "From")) + (ispell-change-dictionary "nl")))) (add-hook 'message-setup-hook 'oni:switch-ispell-dictionary) #+END_SRC |