I use the packages Company mode and Yasnippet. When I'm typing in a buffer, I get autocompletion suggestions from Company. For Yasnippet, I have a directory which contains the snippets. In that directory I have for example, the file foo.yasnippet. When I'm typing foo in the buffer, and press Tab, I get a popup menu for yasnippets, which I chan choose which snippet (foo or foo-bar) I want to insert
![Get Company to show suggestions for Yasnippet names](https://cdn-ak-scissors.b.st-hatena.com/image/square/fb609ece34755c2b084df4dde47c71a8fcf41141/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Femacs%2FImg%2Fapple-touch-icon%402.png%3Fv%3Ddbead6deb8b0)