summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser.el b/elisp/geiser.el
index b89148a..abcdb94 100644
--- a/elisp/geiser.el
+++ b/elisp/geiser.el
@@ -54,7 +54,8 @@
;;; Locations:
;;;###autoload
-(defconst geiser-elisp-dir (file-name-directory load-file-name)
+(defconst geiser-elisp-dir
+ (file-name-directory (or load-file-name buffer-file-name))
"Directory containing Geiser's Elisp files.")