From 60bcf8a8ea2f899a95ae0040df6f064399f30740 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 5 Oct 2011 11:54:13 +0100 Subject: [PATCH] initialize yasnippet in what I believe is a "safer" way --- packages.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages.el b/packages.el index bcca6c3..e08194f 100644 --- a/packages.el +++ b/packages.el @@ -121,8 +121,9 @@ ;; ;; Configure Yasnippet -(yas/initialize) -(yas/load-directory "~/.emacs.d/snippets") +(when (require 'yasnippet nil 'noerror) + (yas/initialize) + (yas/load-directory "~/.emacs.d/snippets")) ;; Load and setup Escreen (when (require 'escreen nil 'noerror)