summaryrefslogtreecommitdiff
path: root/lisp/hexl.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-05-07 01:48:54 +0000
committerKarl Heuer <kwzh@gnu.org>1994-05-07 01:48:54 +0000
commitf86f73c33dc8eb7cf53cac3fbbfabde3eb9678f1 (patch)
treeabb4f5671493410895f98efaafa516e33d629a36 /lisp/hexl.el
parente945e87d7f3176413467297235a057d4db051d85 (diff)
downloademacs-f86f73c33dc8eb7cf53cac3fbbfabde3eb9678f1.tar.gz
(hexl-mode-map): Add bindings for cursor keys.
Diffstat (limited to 'lisp/hexl.el')
-rw-r--r--lisp/hexl.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index 4acb68b6817..ebb283f6e01 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -594,6 +594,15 @@ You may also type up to 3 octal digits, to insert a character with that code"
nil
(setq hexl-mode-map (make-sparse-keymap))
+ (define-key hexl-mode-map [left] 'hexl-backward-char)
+ (define-key hexl-mode-map [right] 'hexl-forward-char)
+ (define-key hexl-mode-map [up] 'hexl-previous-line)
+ (define-key hexl-mode-map [down] 'hexl-next-line)
+ (define-key hexl-mode-map [M-left] 'hexl-backward-short)
+ (define-key hexl-mode-map [M-right] 'hexl-forward-short)
+ (define-key hexl-mode-map [next] 'hexl-scroll-up)
+ (define-key hexl-mode-map [prev] 'hexl-scroll-down)
+
(define-key hexl-mode-map "\C-a" 'hexl-beginning-of-line)
(define-key hexl-mode-map "\C-b" 'hexl-backward-char)
(define-key hexl-mode-map "\C-d" 'undefined)