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

Tab
Show choices.
Enter
Select current choice.
Ctrl+.
Next choice
Ctrl+,
Previous choice
Ctrl+j
Select current choice

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

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial

Emacs Tutorial

Emacs Init

Emacs Keys

ELisp

ELisp Examples

ELisp Write Major Mode


Emacs Init

Init Basics

packages

text editing

file

appearance

misc