summaryrefslogtreecommitdiff
path: root/elisp/geiser-popup.el
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
commit85cbb9af08e2cfa5fef1b4ed3aa6cc29c8e22a28 (patch)
treec29a442d3d4a9472420a9167b8af6c47ab9a8c30 /elisp/geiser-popup.el
parent40fd1f4786052ee95f1fc43a2cf4bda3a8da030f (diff)
downloadgeiser-85cbb9af08e2cfa5fef1b4ed3aa6cc29c8e22a28.tar.gz
geiser-85cbb9af08e2cfa5fef1b4ed3aa6cc29c8e22a28.tar.bz2
Popups improvements (excluding view mode's keymap).
Diffstat (limited to 'elisp/geiser-popup.el')
-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