From ded319e99f9c15a1384e5afee6329509a134117d Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 11 Aug 2009 15:44:54 +0200 Subject: autodoc: better emacs display for opt/key markers. --- elisp/geiser-autodoc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'elisp/geiser-autodoc.el') diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el index 0449032..1225f87 100644 --- a/elisp/geiser-autodoc.el +++ b/elisp/geiser-autodoc.el @@ -97,7 +97,10 @@ when `geiser-autodoc-display-module-p' is on." (defun geiser-autodoc--insert-arg (arg current pos) (let ((p (point)) - (str (format "%s" (if (eq arg 'geiser-rest_marker) "." arg))) + (str (format "%s" (cond ((eq arg 'geiser-rest_marker) ".") + ((eq arg 'geiser-opt_marker) "#:opt") + ((eq arg 'geiser-key_marker) "#:key") + (t arg)))) (face (cond ((eq 'geiser-opt_marker arg) 'geiser-font-lock-autodoc-optional-arg-marker) ((eq 'geiser-key_marker arg) -- cgit v1.2.3