From 29ed32892b05ad7886c49e5f4a22f07779ddc196 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Mon, 11 Apr 2016 10:48:22 +0300 Subject: Initialize 'geiser-doc-mode-map' inside defvar --- elisp/geiser-doc.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'elisp') diff --git a/elisp/geiser-doc.el b/elisp/geiser-doc.el index 52f9c26..343534c 100644 --- a/elisp/geiser-doc.el +++ b/elisp/geiser-doc.el @@ -279,12 +279,12 @@ help (e.g. browse an HTML page) implementing this method.") (with--geiser-implementation impl (geiser-edit-symbol-at-point)))) -(defvar geiser-doc-mode-map nil) -(setq geiser-doc-mode-map - (let ((map (make-sparse-keymap))) - (suppress-keymap map) - (set-keymap-parent map button-buffer-map) - map)) +(defvar geiser-doc-mode-map + (let ((map (make-sparse-keymap))) + (suppress-keymap map) + (set-keymap-parent map button-buffer-map) + map) + "Keymap for `geiser-doc-mode'.") (defun geiser-doc-switch-to-repl () (interactive) -- cgit v1.2.3