From 0b8304c49ab2958bc2b4ef7286467a71faa38f41 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sat, 12 Apr 2008 17:43:04 -0300 Subject: 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. --- lisp/modules/xedit.lsp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/modules/xedit.lsp') 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?$" -- cgit v1.2.3