mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
alas, a map can have only one parent
* lisp/image-mode.el (image-model-map): Cannot have two parents. * lisp/image.el (image-map): Inherit from `special-mode-map'.
This commit is contained in:
parent
1d287665dc
commit
d05806fda1
2 changed files with 2 additions and 0 deletions
|
|
@ -372,6 +372,7 @@ call."
|
|||
|
||||
(defvar image-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(set-keymap-parent map image-map)
|
||||
(define-key map "\C-c\C-c" 'image-toggle-display)
|
||||
(define-key map "\C-c\C-x" 'image-toggle-hex-display)
|
||||
(define-key map (kbd "SPC") 'image-scroll-up)
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ based on the font pixel size."
|
|||
;; Map put into text properties on images.
|
||||
(defvar image-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(set-keymap-parent map special-mode-map)
|
||||
(define-key map "-" 'image-decrease-size)
|
||||
(define-key map "+" 'image-increase-size)
|
||||
(define-key map "r" 'image-rotate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue