3 (eval-when-compile (require 'cl))
5 (defcustom company-ispell-dictionary nil
6 "*Dictionary to use for `company-ispell'.
7 If nil, use `ispell-complete-word-dict'."
9 :type '(choice (const :tag "default (nil)" nil)
10 (file :tag "dictionary" t)))
12 (defun company-ispell (command &optional arg &rest ignored)
14 ('prefix (company-grab "\\<\\w+\\>"))
15 ('candidates (lookup-words arg (or company-ispell-dictionary
16 ispell-complete-word-dict)))
20 (provide 'company-ispell)
21 ;;; company-ispell.el ends here