From f80758d517aeb3b2845c6d2a3236c80907c24dea Mon Sep 17 00:00:00 2001 From: Nathan Lovato Date: Sun, 1 Mar 2020 05:39:44 -0600 Subject: [PATCH] Fix incorrect path when getting *.txt files Closes #28 --- gdscript-syntax.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdscript-syntax.el b/gdscript-syntax.el index 1b201ea..b6e467e 100644 --- a/gdscript-syntax.el +++ b/gdscript-syntax.el @@ -41,7 +41,7 @@ the Doom Emacs distribution, which flattens the package's structure." (with-temp-buffer (let (this-directory requested-path file-path) - (setq this-directory (file-name-directory "gdscript-mode.el")) + (setq this-directory (file-name-directory (or load-file-name buffer-file-name))) (setq requested-path (concat this-directory file-path-relative)) (setq file-path (if (file-readable-p requested-path) requested-path