Forum Moderators: bakedjake

Message Too Old, No Replies

python syntax highlighting in emacs

install packages into emacs

         

opiston

5:53 am on Jan 20, 2006 (gmt 0)

10+ Year Member



Hi all,
I just installed ubuntu on my computer. I use emacs as my editing tool, but I encountered a problem with emacs.

I selected options -> syntax highlighting (global font lock mode) to enable syntax highlighting.
I opened a .cc file and the highlightings are just fine.
However, when I open a .py file (python file), the codes are all in black text.

I figured my emacs does not have the necessary tool to detect a .py file. So, I downloaded a package "python-mode-1.0.tar.gz."
There are 4 files inside:

doctest-mode.el
pycomplete.el
pycomplete.py
python-mode.el

However, I don't know what to do with those files.
I tried puting the files inside of /etc/emacs/site-start.d, but it was still not working.

Can anyone tell me what I did wrong?

Best Regards
Opiston