Yes, you can play games in Emacs!

Photo by JESHOOTS.COM on Unsplash


Continue from my previous article where I walked through with you on setting up LSP and DAP for Emacs, in this article let’s explore gaming in Emacs for amusement and relaxation after a hard day of coding, all within Emacs.

Built-in Games

  • Command: M-x tetris
  • Instructions: C-h m
  • Command: M-x snake
  • Instructions: C-h m
  • Command: M-x bubbles
  • Instructions: C-h m
  • Command: M-x life
  • Instructions: C-h m
  • Command: M-x animate-birthday-present
  • Command: M-x 5x5
  • Instructions: C-h m
  • Command: M-x gomoku
  • Instructions: C-h m

Open any file and select the command, and you can see a random screen saver applied to the buffer.

  • Command: M-x zone
  • Command: M-x mpuz
  • Instructions: C-h m
Multiplication Puzzle
  • Command: M-x pong
  • Instructions: C-h m

And finally, let’s release the power of the butterfly.

  • Command: M-x butterfly
Image from

There are many more games and amusements available. Refer to the References section to find out more.

Other Amusements

Install the package by M-x package-install, and then type xkcd to install the package.

Type M-x xkcd-rand to view random comics within Emacs.


Do also check out these articles!


Programmer and occasional blogger.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store