emacs: always use hunspell for ispell, fix swiper-related error
authorAmin Bandali <bandali@gnu.org>
Thu, 27 Jun 2019 01:53:43 +0000 (21:53 -0400)
committerAmin Bandali <bandali@gnu.org>
Thu, 27 Jun 2019 01:53:43 +0000 (21:53 -0400)
.emacs.d/init.el

index 119d033..e854395 100644 (file)
@@ -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:]]"
   ;; ’ 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
   ;; 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)
    :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)
   (setq lui-time-stamp-format "[%Y-%m-%d %H:%M:%S]"
         lui-time-stamp-only-when-changed-p t
         lui-time-stamp-position 'right)