Permalink
Browse files

conditionally load yasnippet snippets

  • Loading branch information...
1 parent fc6ae6b commit a1c3a00c67853fef9310891268ccdc2bf5de5da7 Pat Maddox committed Dec 18, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 rspec-mode.el
View
@@ -8,6 +8,8 @@
nil
" RSpec")
(add-to-list 'auto-mode-alist '("_spec.rb$" . rspec-mode))
+(if (functionp 'yas/load-directory)
+ (yas/load-directory (concat (file-name-directory load-file-name) "snippets")))
(defun rails-root (&optional dir)
(or dir (setq dir default-directory))

0 comments on commit a1c3a00

Please sign in to comment.