Emacs: Hippie Expand
- Alt+x
hippie-expand
- Expand current word to any matching string that occurs in existing buffers.
You need to give it a key. Put this in your Emacs Init File:
(global-set-key (kbd "C-t") 'hippie-expand)
[see Emacs: How to Define Keybinding]
Press once to expand. Press again to switch to next choice. Can be used anywhere, including in minibuffer.