From: Amin Bandali Date: Thu, 27 Jun 2019 01:53:43 +0000 (-0400) Subject: emacs: always use hunspell for ispell, fix swiper-related error X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/b1ed9ee8a3c507dd26df3d884fb0e15daef7da99 emacs: always use hunspell for ispell, fix swiper-related error --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 119d033..e854395 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1017,7 +1017,8 @@ For disabling the behaviour for certain buffers and/or modes." ;; ’ can be part of a word (setq ispell-local-dictionary-alist `((nil "[[:alpha:]]" "[^[:alpha:]]" - "['\x2019]" nil ("-B") nil utf-8))) + "['\x2019]" nil ("-B") nil utf-8)) + ispell-program-name (executable-find "hunspell")) ;; don't send ’ to the subprocess (defun endless/replace-apostrophe (args) (cons (replace-regexp-in-string @@ -1575,7 +1576,8 @@ For disabling the behaviour for certain buffers and/or modes." :token nday-students-token :subscribed-channels '(general) :full-and-display-names t) - (add-to-list 'swiper-font-lock-exclude 'slack-message-buffer-mode t) + (with-eval-after-load 'swiper + (add-to-list 'swiper-font-lock-exclude 'slack-message-buffer-mode t)) (setq lui-time-stamp-format "[%Y-%m-%d %H:%M:%S]" lui-time-stamp-only-when-changed-p t lui-time-stamp-position 'right)