summaryrefslogtreecommitdiff
path: root/elisp
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-14 22:01:41 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-14 22:01:41 +0200
commit6d36cce3a51d6ebc779d1082b32402001fa9d796 (patch)
tree41d481038f8195e2b10df1e1ad441200d97ab931 /elisp
parentc98d51d7a6cce6d7d64c1893f5ece70ed83841f9 (diff)
downloadgeiser-chez-6d36cce3a51d6ebc779d1082b32402001fa9d796.tar.gz
geiser-chez-6d36cce3a51d6ebc779d1082b32402001fa9d796.tar.bz2
Popups improvements (excluding view mode's keymap).
Diffstat (limited to 'elisp')
-rw-r--r--elisp/geiser-popup.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/elisp/geiser-popup.el b/elisp/geiser-popup.el
index 0d7d234..35be4f6 100644
--- a/elisp/geiser-popup.el
+++ b/elisp/geiser-popup.el
@@ -16,9 +16,17 @@
(defvar geiser-popup--registry nil)
+(defvar geiser-popup--overriding-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "\r" nil)
+ (define-key map "q" 'View-quit)
+ map))
+
(defun geiser-popup--setup-view-mode ()
- (view-mode-enable)
+ (view-mode t)
(set (make-local-variable 'view-no-disable-on-exit) t)
+ (set (make-local-variable 'minor-mode-overriding-map-alist)
+ (list (cons 'view-mode geiser-popup--overriding-map)))
(setq view-exit-action
(lambda (buffer)
(with-current-buffer buffer