]> gitweb.michael.orlitzky.com - emacs.d.git/blobdiff - auto-modes.el
Switch from ecmascript-mode to js-mode, which is built in to Emacs 23.2.
[emacs.d.git] / auto-modes.el
index 0dad7c33f57ab8af3dd52efa8dd1a23fc99907f6..da87ef889929ba959c1f517478e48c40c24823ec 100644 (file)
        ;; ebuild-mode
        '("\\.ebuild$" . ebuild-mode)
 
-       ;; ecmascript-mode
-       '("\\.js$" . ecmascript-mode)
+       ;; js-mode
+       '("\\.js$" . js-mode)
 
        ;; haskell-mode
-       '("\\.hs$" . haskell-mode)
+       '("\\.l?hs$" . haskell-mode)
        
        ;; nagios-mode
        '("\\.cfg$" . nagios-mode)
        '("\\.xml$" . nxml-mode)
        '("\\.?html$" . nxml-mode)
        '("\\.config$" . nxml-mode)
-       '("\\.tpl$" . 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)
-                              
+
+       '("\\.pdf$" . fundamental-mode)
        )
                              
        auto-mode-alist))