Skip to content

Commit 23b9f12

Browse files
author
Sebastian Reuße
committed
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.
1 parent d251297 commit 23b9f12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

haskell-snippets.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
;;; Code:
7070

7171
(setq haskell-snippets-dir
72-
(file-name-directory (or (buffer-file-name)
73-
load-file-name)))
72+
(file-name-directory load-file-name))
7473

7574
;;;###autoload
7675
(defun haskell-snippets-initialize ()

0 commit comments

Comments
 (0)