Add major-mode guard for cleaning trailing space before saving
Move yasnippet settings into customize
Add yasnippet add/edit function