1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-04 14:40:54 -08:00

Revert "Remove XEmacs-only code from snake.el"

This reverts commit 7174a2b59f.

This should be ported to Emacs instead.
This commit is contained in:
Lars Ingebrigtsen 2019-10-15 11:06:14 +02:00
parent 2b347905fe
commit f33965798b

View file

@ -368,6 +368,17 @@ Argument SNAKE-BUFFER is the name of the buffer."
(use-local-map snake-null-map)
(unless (featurep 'emacs)
(setq mode-popup-menu
'("Snake Commands"
["Start new game" snake-start-game]
["End game" snake-end-game
(snake-active-p)]
["Pause" snake-pause-game
(and (snake-active-p) (not snake-paused))]
["Resume" snake-pause-game
(and (snake-active-p) snake-paused)])))
(setq gamegrid-use-glyphs snake-use-glyphs-flag)
(setq gamegrid-use-color snake-use-color-flag)