As the question suggest, I am trying to set up the auto-complete
package for writing papers. I have also installed ac-ispell
. So far it seems more or less useless, mostly because it is way too slow. Suggestions take several full seconds to appear.
Here are the relevant lines that I currently have in my init, which are based directly on the recommendations in the documentation for these two packages:
(require 'auto-complete-config)
(ac-config-default)
(add-to-list 'ac-modes '(org-mode text-mode LaTeX-mode))
(custom-set-variables
'(ac-ispell-requires 4)
'(ac-ispell-fuzzy-limit 2))
(eval-after-load "auto-complete"
'(progn
(ac-ispell-setup)))
(add-hook 'git-commit-mode-hook 'ac-ispell-ac-setup)
(add-hook 'mail-mode-hook 'ac-ispell-ac-setup)
(add-hook 'org-mode-hook 'ac-ispell-ac-setup)
(add-hook 'text-mode-hook 'ac-ispell-ac-setup)
(add-hook 'LaTeX-mode-hook 'ac-ispell-ac-setup)
(global-auto-complete-mode t)
In case this helps, the resulting value for ac-sources
is (ac-source-ispell ac-source-ispell-fuzzy ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers)
.
If you've had better luck with this then I have, please help!