summaryrefslogtreecommitdiff
path: root/elisp/geiser-doc.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-doc.el')
-rw-r--r--elisp/geiser-doc.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 4e65b67..6d2eb40 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -125,9 +125,14 @@
(defun geiser-doc--insert-title (title)
(let ((p (point)))
- (insert (format "%s" title))
- (put-text-property p (point) 'face 'geiser-font-lock-doc-title))
- (newline))
+ (if (not (listp title))
+ (insert (format "%s" title))
+ (insert "(" (format "%s" (car title)))
+ (dolist (a (cdr title))
+ (insert " " (if (eq a '\#:rest) "." (format "%s" a))))
+ (insert ")"))
+ (put-text-property p (point) 'face 'geiser-font-lock-doc-title)
+ (newline)))
(defun geiser-doc--insert-list (title lst module)
(when lst