File: emacsen-startup

package info (click to toggle)
python-mode 1%3A1.0-3.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 236 kB
  • ctags: 234
  • sloc: lisp: 3,607; python: 58; sh: 49; makefile: 31
file content (38 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;-*-emacs-lisp-*-

(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'py-shell "python-mode" "Interactive Python interpreter." t)
(autoload 'doctest-mode "doctest-mode" "Python doctest editing mode." t)

(setq load-path
      (append
       (list
	(concat "/usr/share/"
		(symbol-name debian-emacs-flavor)
		"/site-lisp/python-mode")
	(concat "/usr/share/"
		(symbol-name debian-emacs-flavor)
		"/site-lisp/pymacs")
	)
       load-path))

(setq auto-mode-alist
      (append
       (list
	'("\\.py$" . python-mode)
	'("SConstruct$" . python-mode)
	'("SConscript$" . python-mode)
	)
       auto-mode-alist))

(setq interpreter-mode-alist
      (append 
       (list
	'("python" . python-mode) 
	'("python2.1" . python-mode) 
	'("python2.2" . python-mode) 
	'("python2.3" . python-mode)
	'("python2.4" . python-mode)
	'("python2.5" . python-mode)
	)
       interpreter-mode-alist))