Skip to content

Commit

Permalink
Don't use buffer-file-name when locating yasnippets dir
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Oct 23, 2014
1 parent cd8fe81 commit bbd5997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-yas.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
(apply haskell-yas-completing-function args))

(defconst haskell-snippets-dir
(expand-file-name "snippets" (file-name-directory (or (buffer-file-name) load-file-name))))
(expand-file-name "snippets" (file-name-directory load-file-name)))

(defvar yas-snippet-dirs)
(declare-function yas-load-directory "ext:yasnippet"
Expand Down

0 comments on commit bbd5997

Please sign in to comment.