]> gitweb.michael.orlitzky.com - emacs.d.git/blob - auto-modes.el
Switch from ecmascript-mode to js-mode, which is built in to Emacs 23.2.
[emacs.d.git] / auto-modes.el
1 (setq auto-mode-alist
2 (append
3 (list
4
5 ;; apache-mode
6 '("\\.htaccess$" . apache-mode)
7 '("httpd\\.conf$" . apache-mode)
8 '("srm\\.conf$" . apache-mode)
9 '("access\\.conf$" . apache-mode)
10 '("apache[12]\?\\.conf$" . apache-mode)
11 '("commonapache[12]\?\\.conf$" . apache-mode)
12
13 ;; basic-mode
14 '("\\.class\\.asp$" . basic-mode)
15 '("\\.vbs$" . basic-mode)
16
17 ;; csharp-mode
18 '("\\.ascx$" . csharp-mode)
19 '("\\.cs$" . csharp-mode)
20
21 ;; css-mode
22 '("\\.css$" . css-mode)
23
24 ;; ebuild-mode
25 '("\\.ebuild$" . ebuild-mode)
26
27 ;; js-mode
28 '("\\.js$" . js-mode)
29
30 ;; haskell-mode
31 '("\\.l?hs$" . haskell-mode)
32
33 ;; nagios-mode
34 '("\\.cfg$" . nagios-mode)
35
36 ;; nxml-mode
37 '("\\.asp$" . nxml-mode)
38 '("\\.aspx$" . nxml-mode)
39 '("\\.xml$" . nxml-mode)
40 '("\\.?html$" . nxml-mode)
41 '("\\.config$" . nxml-mode)
42 '("\\.tpl$" . nxml-mode) ;; Smarty templates
43 '("\\.rdf$" . nxml-mode)
44 '("\\.xul$" . nxml-mode)
45
46 ;; php-mode
47 '("\\.php$" . php-mode)
48 '("\\.module$" . php-mode) ;; Drupal modules
49
50 ;; python-mode
51 '("\\.pyx?$" . python-mode)
52
53 ;; ruby-mode
54 '("\\.rake$" . ruby-mode)
55 '("\\.rb$" . ruby-mode)
56
57 '("\\.pdf$" . fundamental-mode)
58 )
59
60 auto-mode-alist))