diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-14 22:01:41 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-06-14 22:01:41 +0200 |
commit | 85cbb9af08e2cfa5fef1b4ed3aa6cc29c8e22a28 (patch) | |
tree | c29a442d3d4a9472420a9167b8af6c47ab9a8c30 /elisp/geiser-popup.el | |
parent | 40fd1f4786052ee95f1fc43a2cf4bda3a8da030f (diff) | |
download | geiser-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.el | 10 |
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 |