Emacs: Icomplete Mode
icomplete-mode enhances emacs's name completion when in minibuffer prompts.
icomplete mode is part of emacs.
icomplete does completion for any command that prompts for a list of choices. Here's some of them:
- Tab to show choices.
- Enter to 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