Revamp auto-complete mode and yasnippet mode.