diff options
| author | Lars Ingebrigtsen | 2019-08-14 18:15:22 -0700 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-08-14 18:20:04 -0700 |
| commit | b898528fdc69c9ac58895f8be81163dc304bd59b (patch) | |
| tree | 15ad95db4ebe78294ac4b84867077dbfcd2bc27c | |
| parent | aa1411b20fba73ca6fde90fc9ce62cc8a854bf20 (diff) | |
| download | emacs-b898528fdc69c9ac58895f8be81163dc304bd59b.tar.gz emacs-b898528fdc69c9ac58895f8be81163dc304bd59b.zip | |
Add C-b/f/p/n keystrokes in `M-x snake'
* lisp/play/snake.el (snake-mode-map): Add the C-b/f/p/n in
addition to the cursor keys (bug#16720).
| -rw-r--r-- | lisp/play/snake.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/play/snake.el b/lisp/play/snake.el index 7c19733f3d2..d0f94579062 100644 --- a/lisp/play/snake.el +++ b/lisp/play/snake.el | |||
| @@ -179,8 +179,13 @@ and then start moving it leftwards.") | |||
| 179 | 179 | ||
| 180 | (define-key map [left] 'snake-move-left) | 180 | (define-key map [left] 'snake-move-left) |
| 181 | (define-key map [right] 'snake-move-right) | 181 | (define-key map [right] 'snake-move-right) |
| 182 | (define-key map [up] 'snake-move-up) | 182 | (define-key map [up] 'snake-move-up) |
| 183 | (define-key map [down] 'snake-move-down) | 183 | (define-key map [down] 'snake-move-down) |
| 184 | |||
| 185 | (define-key map "\C-b" 'snake-move-left) | ||
| 186 | (define-key map "\C-f" 'snake-move-right) | ||
| 187 | (define-key map "\C-p" 'snake-move-up) | ||
| 188 | (define-key map "\C-n" 'snake-move-down) | ||
| 184 | map)) | 189 | map)) |
| 185 | 190 | ||
| 186 | (defvar snake-null-map | 191 | (defvar snake-null-map |