From afbdc0d0ba30f7b2268a2ee2906cbb7938ec2230 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Mon, 11 Apr 2016 10:49:38 +0300 Subject: Define 'geiser-doc-mode' with 'define-derived-mode' --- elisp/geiser-doc.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'elisp') 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)) -- cgit v1.2.3