summaryrefslogtreecommitdiff
path: root/elisp/geiser-plt.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-plt.el')
-rw-r--r--elisp/geiser-plt.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/elisp/geiser-plt.el b/elisp/geiser-plt.el
index 01e10a2..9fcd3f5 100644
--- a/elisp/geiser-plt.el
+++ b/elisp/geiser-plt.el
@@ -70,8 +70,9 @@ This function uses `geiser-plt-init-file' if it exists."
(defun geiser-plt--language ()
(save-excursion
(goto-char (point-min))
- (if (re-search-forward "^#lang +\\([^ ]+?\\) *$" nil t)
- (intern (match-string-no-properties 1))
+ (if (re-search-forward
+ "^\\(?:#lang\\|(module +[^ ]+?\\) +\\([^ ]+?\\|([^)]+)\\) *$" nil t)
+ (car (read-from-string (match-string-no-properties 1)))
:f)))
(defun geiser-plt--geiser-procedure (proc)