]> gitweb.michael.orlitzky.com - emacs.d.git/blobdiff - auto-modes.el
mode-hooks.el: add dns-mode hooks
[emacs.d.git] / auto-modes.el
index 063f43631ab631a6ec4d04b4fd07628eead8107c..a616d48447672357b1e3119486dd45c383b174f9 100644 (file)
@@ -1,59 +1,46 @@
 (setq auto-mode-alist
       (append
        (list
-       
+
        ;; apache-mode
-       '("\\.htaccess$"   . apache-mode)
-       '("httpd\\.conf$"  . apache-mode)
-       '("srm\\.conf$"    . apache-mode)
-       '("access\\.conf$" . apache-mode)
-       '("apache[12]\?\\.conf$" . apache-mode)
+       '("\\.htaccess$"               . apache-mode)
+       '("httpd\\.conf$"              . apache-mode)
+       '("srm\\.conf$"                . apache-mode)
+       '("access\\.conf$"             . apache-mode)
+       '("apache[12]\?\\.conf$"       . apache-mode)
        '("commonapache[12]\?\\.conf$" . apache-mode)
 
-       ;; basic-mode
-       '("\\.class\\.asp$" . basic-mode)
-       '("\\.vbs$" . basic-mode)
-       
-       ;; csharp-mode
-       '("\\.ascx$" . csharp-mode)
-       '("\\.cs$" . csharp-mode)
-
-       ;; css-mode
-       '("\\.css$" . css-mode)
-
-       ;; ebuild-mode
-       '("\\.ebuild$" . ebuild-mode)
+       ;; haskell-mode
+       '("\\.l?hs$" . haskell-mode)
 
-       ;; ecmascript-mode
-       '("\\.js$" . ecmascript-mode)
+       ;; octave-mode, the extension is a MATLAB relic.
+       '("\\.m$" . octave-mode)
 
-       ;; haskell-mode
-       '("\\.hs$" . haskell-mode)
-       
        ;; nagios-mode
        '("\\.cfg$" . nagios-mode)
 
        ;; nxml-mode
-       '("\\.asp$" . nxml-mode)
-       '("\\.aspx$" . nxml-mode)
-       '("\\.xml$" . nxml-mode)
-       '("\\.?html$" . nxml-mode)
+       '("\\.asp$"    . nxml-mode)
+       '("\\.aspx$"   . nxml-mode)
+       '("\\.xml$"    . nxml-mode)
+       '("\\.?html$"  . nxml-mode)
        '("\\.config$" . nxml-mode)
-       '("\\.tpl$" . nxml-mode)
-       '("\\.rdf$" . nxml-mode)
-       '("\\.xul$" . nxml-mode)
-                              
+       '("\\.tpl$"    . nxml-mode) ;; Smarty templates
+       '("\\.rdf$"    . nxml-mode)
+       '("\\.xul$"    . nxml-mode)
+
        ;; php-mode
-       '("\\.php$" . php-mode)
-                              
+       '("\\.module$" . php-mode) ;; Drupal modules
+
        ;; python-mode
-       '("\\.py$" . python-mode)
+       '("\\.pyx?$" . python-mode)
 
        ;; ruby-mode
-       '("\\.rake$" . ruby-mode)
-       '("\\.rb$" . ruby-mode)
+       '("\\.rake$"      . ruby-mode)
+       '("/[Rr]akefile$" . ruby-mode)
 
+       ;; Perhaps surprisingly, I do not use Emacs as my PDF viewer.
        '("\\.pdf$" . fundamental-mode)
        )
-                             
+
        auto-mode-alist))