[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mines 7133550 28/43: * mines/mines.el (mines-mode): Mov
From: |
Stefan Monnier |
Subject: |
[elpa] externals/mines 7133550 28/43: * mines/mines.el (mines-mode): Move the docstring to where it belongs. |
Date: |
Mon, 30 Nov 2020 18:44:18 -0500 (EST) |
branch: externals/mines
commit 7133550459f5101680112f8990c6bc4e3e101bfb
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Tino Calancha <tino.calancha@gmail.com>
* mines/mines.el (mines-mode): Move the docstring to where it belongs.
---
mines.el | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/mines.el b/mines.el
index ae926a7..acc491c 100644
--- a/mines.el
+++ b/mines.el
@@ -541,25 +541,6 @@ Called with a prefix prompt for the difficulty level."
(mines-show))
(define-derived-mode mines-mode special-mode "mines"
- (let ((map mines-mode-map))
- (define-key map [right] 'mines-go-right)
- (define-key map "f" 'mines-go-right)
- (define-key map "l" 'mines-go-right)
- (define-key map [left] 'mines-go-left)
- (define-key map "b" 'mines-go-left)
- (define-key map "h" 'mines-go-left)
- (define-key map "p" 'mines-go-up)
- (define-key map "k" 'mines-go-up)
- (define-key map [up] 'mines-go-up)
- (define-key map [down] 'mines-go-down)
- (define-key map "n" 'mines-go-down)
- (define-key map "j" 'mines-go-down)
- (define-key map "x" 'mines-dig)
- (define-key map "c" 'mines-dig)
- ;; (define-key map "a" 'mines-flag-cell)
- (define-key map "1" 'mines-flag-cell)
- (define-key map "m" 'mines-flag-cell)
- (define-key map "r" 'mines))
"Major mode for playing Minesweeper.
The target of the game is discover which cells contain mines.
@@ -585,7 +566,26 @@ You can move between cells using the arrow keys, or using
vi
or Emacs keystrokes (↑↓→←) = (kjlh) = (pnfb).
You can flag a cell as having a mine with \\[mines-flag-cell\]; if you
-call this command again, the cell is unflagged.")
+call this command again, the cell is unflagged."
+ (let ((map mines-mode-map))
+ (define-key map [right] 'mines-go-right)
+ (define-key map "f" 'mines-go-right)
+ (define-key map "l" 'mines-go-right)
+ (define-key map [left] 'mines-go-left)
+ (define-key map "b" 'mines-go-left)
+ (define-key map "h" 'mines-go-left)
+ (define-key map "p" 'mines-go-up)
+ (define-key map "k" 'mines-go-up)
+ (define-key map [up] 'mines-go-up)
+ (define-key map [down] 'mines-go-down)
+ (define-key map "n" 'mines-go-down)
+ (define-key map "j" 'mines-go-down)
+ (define-key map "x" 'mines-dig)
+ (define-key map "c" 'mines-dig)
+ ;; (define-key map "a" 'mines-flag-cell)
+ (define-key map "1" 'mines-flag-cell)
+ (define-key map "m" 'mines-flag-cell)
+ (define-key map "r" 'mines)))
;;; Predicates
- [elpa] externals/mines 5ada7d3 06/43: * Readme: Add more screenshots, (continued)
- [elpa] externals/mines 5ada7d3 06/43: * Readme: Add more screenshots, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 9f7404e 07/43: Delete file, Stefan Monnier, 2020/11/30
- [elpa] externals/mines dd8b0e3 11/43: Delete screenshots, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 1efe0e0 12/43: updated screenshots, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 909152f 19/43: * mines.el (mines-dig): Update element at point after avoid gameover in 1st trial, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 7660b39 21/43: Add test suite, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 3de39fb 22/43: * README.md: Show build state, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 6e7fc5c 24/43: * mines.el: Update dependency to Emacs-24.4, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 226776a 25/43: * mines: Fix compilation warnings, Stefan Monnier, 2020/11/30
- [elpa] externals/mines abc8c9d 26/43: Move game documentation into `mines-mode' docstring, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 7133550 28/43: * mines/mines.el (mines-mode): Move the docstring to where it belongs.,
Stefan Monnier <=
- [elpa] externals/mines 2241dcd 36/43: * mines/mines.el: Various minor changes, wave 1, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 3308a99 38/43: * packages/mines/mines.el: Keep flag in mines-state, Stefan Monnier, 2020/11/30
- [elpa] externals/mines e090a90 40/43: * mines.el: Make sure the first move is successful, Stefan Monnier, 2020/11/30
- [elpa] externals/mines bea3ad8 42/43: * packages/mines/mines.el (mines-auto-flag): New custom var, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 97e0a05 43/43: * mines.el: Adjust docs for the @ => SPC change, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 92399df 29/43: * packages/mines/mines.el: Bump version to 1.2, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 868e9b9 35/43: * mines.el: Bump version to v1.6, Stefan Monnier, 2020/11/30
- [elpa] externals/mines e127c84 30/43: Add fallback function for read-multiple-choice, Stefan Monnier, 2020/11/30
- [elpa] externals/mines bf577b0 31/43: Sort the score file from better to worst results, Stefan Monnier, 2020/11/30
- [elpa] externals/mines 179ed77 32/43: Dont prompt user when updating the score file, Stefan Monnier, 2020/11/30