summaryrefslogtreecommitdiff
path: root/lisp/modules/xedit.lsp
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-04-12 17:43:04 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-07-02 19:07:58 -0300
commit0b8304c49ab2958bc2b4ef7286467a71faa38f41 (patch)
tree5f53db3208d8e30a681a80b8cc723139791df0cc /lisp/modules/xedit.lsp
parent614563884d2b19e514af233089e392127c4f4027 (diff)
Add python mode.
This mode adds syntax highlight and automatic indentation. Unlike most other modes with automatic indentation, this mode most only reads one line back to figure the proper indentation. Some features include: o When the first character in a line is typped, it automatically moves it to the proper tab stop. o Increments one indentation level if line ends in ':'. o Properly handle vector/hash table declarations.
Diffstat (limited to 'lisp/modules/xedit.lsp')
-rw-r--r--lisp/modules/xedit.lsp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/modules/xedit.lsp b/lisp/modules/xedit.lsp
index d3e2a02..2b76970 100644
--- a/lisp/modules/xedit.lsp
+++ b/lisp/modules/xedit.lsp
@@ -70,6 +70,8 @@
"RPM spec" "rpm" . *rpm-mode*)
("\\.(pl|pm|ph)$"
"Perl" "perl" . *perl-mode*)
+ ("\\.(py)$"
+ "Python" "python". *python-mode*)
("\\.(sgml?|dtd)$"
"SGML" "sgml" . *sgml-mode*)
("\\.html?$"