Skip to content

Commit

Permalink
Load correct .yas-setup and .yas-compiled-snippets file when loading …
Browse files Browse the repository at this point in the history
…a snippet dir
  • Loading branch information
joaotavora committed Feb 27, 2012
1 parent 7ab7502 commit 893a9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yasnippet.el
Expand Up @@ -1606,9 +1606,9 @@ TEMPLATES is a list of `yas/template'."
(unless (file-exists-p (concat directory "/" ".yas-skip"))
;; Load .yas-setup.el files wherever we find them
;;
(load ".yas-setup" 'noerror)
(load (expand-file-name ".yas-setup" directory) 'noerror)
(if (and (not no-compiled-snippets)
(load ".yas-compiled-snippets" 'noerror))
(load (expand-file-name ".yas-compiled-snippets" directory) 'noerror))
(message "Loading much faster .yas-compiled-snippets from %s" directory)
(let* ((major-mode-and-parents (if mode-sym
(cons mode-sym parents)
Expand Down

0 comments on commit 893a9b3

Please sign in to comment.