Variable: snake--menu-def

snake--menu-def is a variable defined in snake.el.gz.

Value

("Snake"
 ["Start new game" snake-start-game :help "Start a new Snake game"]
 ["End game" snake-end-game :active (snake-active-p) :help
  "End the current Snake game"])

Documentation

Menu for snake. Used to initialize menus.

Source Code

;; Defined in /usr/src/emacs/lisp/play/snake.el.gz
(defconst snake--menu-def
  '("Snake"
    ["Start new game" snake-start-game
     :help "Start a new Snake game"]
    ["End game"       snake-end-game
     :active (snake-active-p)
     :help "End the current Snake game"]
    ;; FIXME: Pause and resume from the menu currently doesn't work
    ;;        very well and is therefore disabled.  The game continues
    ;;        running while navigating the menu.  See also
    ;;        `tetris--menu-def' which has the same problem.
    ;; ["Pause"          snake-pause-game
    ;;  :active (and (snake-active-p) (not snake-paused))
    ;;  :help "Pause running Snake game"]
    ;; ["Resume"         snake-pause-game
    ;;  :active (and (snake-active-p) snake-paused)
    ;;  :help "Resume paused Snake game"]
    )
  "Menu for `snake'.  Used to initialize menus.")