Emacs: Icomplete Mode

By Xah Lee. Date: . Last updated: .

icomplete-mode enhances emacs's name completion when in minibuffer prompts.

icomplete mode is part of emacs.

emacs icomplete mode 2017 07 10 48947
emacs Alt+x icomplete-mode

icomplete does completion for any command that prompts for a list of choices. Here's some of them:

icomplete keys

Icomplete Mode Setup

(progn
  ;; minibuffer enhanced completion
  (require 'icomplete)
  (icomplete-mode 1)
  ;; show choices vertically
  (setq icomplete-separator "\n")
  (setq icomplete-hide-common-prefix nil)
  (setq icomplete-in-buffer t)

  (define-key icomplete-minibuffer-map (kbd "<right>") 'icomplete-forward-completions)
  (define-key icomplete-minibuffer-map (kbd "<left>") 'icomplete-backward-completions))

icomplete is written by Ken Manheimer, first released in 1993. (Ken Manheimer's home page: http://myriadicity.net/https://twitter.com/myriadicity )


See also: Emacs: icomplete vs ido mode

Like my tutorial? Put $5 at patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs