Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am in terminal on a Mac, and I type in emacs tetris. It comes up with a blank page and something at the bottom saying: Loading image...done, but that is it. I leave it for a little while but nothing happens. I try emacs dunnet and emacs doctor, but the same thing happens again.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

If you call emacs <something>, the parameter passed will be a file.

echo "test" > test
emacs test

This will open the file called "test".

If you want to play Tetris on emacs, just open it with emacs, then press Escape, then x, and then enter tetris.

enter image description here

I obviously suck at Tetris.

share|improve this answer
    
Also, if you've executed the (wrong) command before, look in your directory for files called #tetris#, and remove them with rm '#tetris#', if necessary. –  slhck Nov 28 '11 at 17:23
    
Accepted answer. Thank you. Although it is strange because I'm sure emacs tetris used to work. –  gadgetmo Nov 28 '11 at 17:26
    
Hm, I don't know why it should. Default behavior for emacs is to take the arguments after the options as the filename, as in emacs [ command-line switches ] [ files ... ]. –  slhck Nov 28 '11 at 17:30
add comment

If you want to start tetris from the command line, use

emacs -f tetris

From the manual:

-f function, --funcall function
        Execute the lisp function function.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.