[Python-mode] New to python mode, help!
Gene Horodecki
geneh at shaw.ca
Fri Oct 21 15:21:02 CEST 2011
Hi there. I was using emacs before without python-mode but I am new to
xemacs. I'd like to use python-mode and I think I've installed it
properly but nothing noticeable seems to be happening when I open a
python script.
I put the python mode code in:
~/.xemacs.d/plugins/python-mode.el-6.0.3
I put the following in my .xemacs/init.el file:
(add-to-list 'load-path "~/.xemacs.d/plugins/python-mode.el-6.0.3")
(require 'python-mode)
(setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist (cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
When I open a .py file I get no syntax highlighting, no menu item..
nothing. Could someone please help? Thanks.
More information about the Python-mode
mailing list