]> gitweb.michael.orlitzky.com - emacs.d.git/blob - auto-modes.el
6146b6dcd06a09199ea57fd3e365a671f511f320
[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 ;; csharp-mode
14 '("\\.ascx$" . csharp-mode)
15 '("\\.cs$" . csharp-mode)
16
17 ;; haskell-mode
18 '("\\.l?hs$" . haskell-mode)
19
20 ;; octave-mode, the extension is a MATLAB relic.
21 '("\\.m$" . octave-mode)
22
23 ;; nagios-mode
24 '("\\.cfg$" . nagios-mode)
25
26 ;; nxml-mode
27 '("\\.asp$" . nxml-mode)
28 '("\\.aspx$" . nxml-mode)
29 '("\\.xml$" . nxml-mode)
30 '("\\.?html$" . nxml-mode)
31 '("\\.config$" . nxml-mode)
32 '("\\.tpl$" . nxml-mode) ;; Smarty templates
33 '("\\.rdf$" . nxml-mode)
34 '("\\.xul$" . nxml-mode)
35
36 ;; php-mode
37 '("\\.module$" . php-mode) ;; Drupal modules
38
39 ;; python-mode
40 '("\\.pyx?$" . python-mode)
41
42 ;; ruby-mode
43 '("\\.rake$" . ruby-mode)
44 '("/[Rr]akefile$" . ruby-mode)
45
46 ;; Perhaps surprisingly, I do not use Emacs as my PDF viewer.
47 '("\\.pdf$" . fundamental-mode)
48 )
49
50 auto-mode-alist))