(if (locate-library "yasnippet") (progn (require 'yasnippet) (setq yas-snippet-dirs '("~/proj/snippets")) (yas-global-mode 1)))