Showing posts with label emacs. Show all posts
Showing posts with label emacs. Show all posts

Wednesday, 20 May 2009

Text mode emacs and python syntax highlighting

I'm learning python, in order to develop django-powered web applications. The test environment is the my office's mini-server (an old, 900 Mhz Pentium III) with a Debian on it (used for ticketing, backupping stuff and as database/web server supporting internal activities) , without any graphical interface.

In order to develop more easily, I apt-got emacs which runs perfectly in text mode. By the way, syntax highlight doesn't work out of the box.

This is what you're going to need:
  • install the python-mode package;
  • create, if you don't have one already, a ~/.emacs file, and append this line: (global-font-lock-mode 1).
Cheers.