modified to configure yasnippet.