Skip to content

Commit

Permalink
fixed company-ispell bug by using grep instead of look
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Jul 24, 2023
1 parent 13719ce commit ce7af55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lisp/init-company.el
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ In that case, insert the number."
(push 'company-ispell company-backends)
(message "company-ispell enabled!"))))

(with-eval-after-load 'ispell
;; "look" is not reliable, use "grep" instead.
;; For example, Linux CLI "/usr/bin/look -df Mond /usr/share/dict/words"
;; returns nothing on my Debian Linux testing version.
(setq ispell-look-p nil))

(defun my-company-ispell-setup ()
;; @see https://github.com/company-mode/company-mode/issues/50
(when (boundp 'company-backends)
Expand Down

0 comments on commit ce7af55

Please sign in to comment.