diff options
author | Alex Kost <alezost@gmail.com> | 2016-04-11 10:52:41 +0300 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2016-04-23 02:20:25 +0200 |
commit | 44aa856108d60da1129dbc390bb1703ed09d2ece (patch) | |
tree | 8b387e9c036123c7b95a1c6fd3f263216ffa2968 /elisp | |
parent | d998190c1c9abc19ed2a0f414e5d850b0236558d (diff) | |
download | geiser-44aa856108d60da1129dbc390bb1703ed09d2ece.tar.gz geiser-44aa856108d60da1129dbc390bb1703ed09d2ece.tar.bz2 |
Define 'geiser-debug-mode' with 'define-derived-mode'
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-debug.el | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/elisp/geiser-debug.el b/elisp/geiser-debug.el index dbeefba..00fd4d9 100644 --- a/elisp/geiser-debug.el +++ b/elisp/geiser-debug.el @@ -75,18 +75,14 @@ See also `geiser-repl-auto-display-images-p'." (let ((map (make-sparse-keymap))) (suppress-keymap map) (set-keymap-parent map button-buffer-map) - map)) + map) + "Keymap for `geiser-debug-mode'.") -(defun geiser-debug-mode () +(define-derived-mode geiser-debug-mode nil "Geiser DBG" "A major mode for displaying Scheme compilation and evaluation results. \\{geiser-debug-mode-map}" - (interactive) - (kill-all-local-variables) (buffer-disable-undo) - (use-local-map geiser-debug-mode-map) (set-syntax-table scheme-mode-syntax-table) - (setq mode-name "Geiser DBG") - (setq major-mode 'geiser-debug-mode) (setq next-error-function 'geiser-edit--open-next) (setq buffer-read-only t)) |