File: emacsen-startup

package info (click to toggle)
python-mode 4.70-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 240 kB
  • ctags: 226
  • sloc: lisp: 3,560; sh: 40; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;-*-emacs-lisp-*-

(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'doctest-mode "doctest-mode" "Python doctest editing mode." t)

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

(setq auto-mode-alist
    (cons '("\\.py$" . python-mode) auto-mode-alist))

(setq auto-mode-alist
    (cons '("\\.doctest$" . doctest-mode) auto-mode-alist))

(setq interpreter-mode-alist
    (cons '("python" . python-mode) interpreter-mode-alist))