]> git.eshelyaron.com Git - emacs.git/commit
New commands for making icomplete behave more like ido
authorJoão Távora <joaotavora@gmail.com>
Tue, 29 Oct 2019 00:12:16 +0000 (00:12 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 29 Oct 2019 00:19:33 +0000 (00:19 +0000)
commit7373d6eae807af9f0557b28b30e2864f17114c40
treeb3791244cb7ecd82b19963f34e0beabbc64cbdb3
parent4e3676726a64018cd4688d2669657878a2975f2c
New commands for making icomplete behave more like ido

This tries (not particularly hard) to emulate Ido's magic C-k, C-d,
RET and DEL.  For now, the new commands have to be explicitly added to
an active map by the user, using something like this:

(let ((imap icomplete-minibuffer-map))
  (define-key imap (kbd "C-k") 'icomplete-magic-ido-kill)
  (define-key imap (kbd "C-d") 'icomplete-magic-ido-delete-char)
  (define-key imap (kbd "RET") 'icomplete-magic-ido-ret)
  (define-key imap (kbd "DEL") 'icomplete-magic-ido-backward-updir))

* lisp/icomplete.el (icomplete-magic-ido-kill)
(icomplete-magic-ido-delete-char, icomplete-magic-ido-ret)
(icomplete-magic-ido-backward-updir): New commands.
lisp/icomplete.el