Joshuah Heath
Joshuah Heath

Reputation: 673

Getting started with Python on Emacs

I am familiar with python but completely new to Emacs, and I want to start using the latter for coding. In Emacs, I ran

M-x python-mode

And I get

Loading python...                                                                                                                
Loading easymenu...done                                                                                                          
Loading python...done 

And then nothing happens. It doesn't freeze, it doesn't go to python mode...it just doesn't change. Could someone please help me fix this problem? I am running Emacs from the Mavericks terminal.

Upvotes: 0

Views: 96

Answers (1)

Kirk Strauser
Kirk Strauser

Reputation: 30933

In Emacs, foo-mode generally sets the mode of the current buffer to foo. In your case, you were setting the current buffer to python-mode, which doesn't directly do anything unless you're looking at Python code.

The Python Programming in Emacs wiki page is a bit... sprawling... but it has lots of good information. Before that, I'd suggest going through the Emacs tutorial (hit C-h t to launch it) to learn more about Emacs's underlying principles. That's going to save you a lot of confusion later.

Upvotes: 2

Related Questions