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.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el
index 343534c..1e4d218 100644
--- a/elisp/geiser-doc.el
+++ b/elisp/geiser-doc.el
@@ -314,17 +314,12 @@ help (e.g. browse an HTML page) implementing this method.")
--
("Quit" nil View-quit))
-(defun geiser-doc-mode ()
+(define-derived-mode geiser-doc-mode nil "Geiser Doc"
"Major mode for browsing scheme documentation.
\\{geiser-doc-mode-map}"
- (interactive)
- (kill-all-local-variables)
(buffer-disable-undo)
(setq truncate-lines t)
- (use-local-map geiser-doc-mode-map)
(set-syntax-table scheme-mode-syntax-table)
- (setq mode-name "Geiser Doc")
- (setq major-mode 'geiser-doc-mode)
(setq geiser-eval--get-module-function 'geiser-doc--module)
(setq buffer-read-only t))