Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (31 sloc) 1.39 KB

Emacs Starter Kit Predictive

Predictive Mode

Predictive is a package for the GNU Emacs Editor that helps you write text faster. It does this by trying to predict what you are going to write by looking at the first few characters of each word you type, looking into a dictionary for matching words, and suggesting words from this dictionary.

Note that this mode should be precompiled before using it!

Autoload it

Change paths if necessary.

(let ((predictive-dicts-dir (concat dotfiles-dir "predictive-dicts/"))
      (predictive-dir (concat dotfiles-dir "src/predictive/")))
  (add-to-list 'load-path predictive-dir)
  (add-to-list 'load-path (concat predictive-dicts-dir "html/"))
  (add-to-list 'load-path (concat predictive-dicts-dir "latex/"))
  (add-to-list 'load-path (concat predictive-dicts-dir "texinfo/"))
  (autoload 'predictive-mode (concat predictive-dir "predictive")
    "Turn on Predictive Completion Mode." t))

Some customizations

(setq predictive-which-dict t)
(setq predictive-auto-add-min-chars 3)
(setq predictive-auto-learn t)
(setq predictive-use-auto-learn-cache nil)
(set-default 'predictive-auto-add-to-dict t)