From 23b9f12768bff79bd508c00d34fe15a69396b066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Reu=C3=9Fe?= Date: Fri, 12 Jun 2015 09:16:43 +0200 Subject: [PATCH] Fix haskell-snippets dir. Using buffer-file-name will append a path relative to the visited buffer to yas-snippet-dirs if yas-global-mode is activated from within an arbitrary buffer. --- haskell-snippets.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/haskell-snippets.el b/haskell-snippets.el index c590605..945b462 100644 --- a/haskell-snippets.el +++ b/haskell-snippets.el @@ -69,8 +69,7 @@ ;;; Code: (setq haskell-snippets-dir - (file-name-directory (or (buffer-file-name) - load-file-name))) + (file-name-directory load-file-name)) ;;;###autoload (defun haskell-snippets-initialize ()