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