X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=auto-modes.el;h=19bf70143f197b03f10bee5e98ee045bf54d5361;hb=9c53c8cc7f76aa6ae3f4028176c65a4ab84e3431;hp=21149accf13e3ff2059fe1bf408f6f8b3271ebda;hpb=2d26db20b89374179ffab83893a257c023528ee9;p=emacs.d.git diff --git a/auto-modes.el b/auto-modes.el index 21149ac..19bf701 100644 --- a/auto-modes.el +++ b/auto-modes.el @@ -1,22 +1,18 @@ (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) + '("\\.cs$" . csharp-mode) ;; css-mode '("\\.css$" . css-mode) @@ -24,36 +20,41 @@ ;; ebuild-mode '("\\.ebuild$" . ebuild-mode) - ;; ecmascript-mode - '("\\.js$" . ecmascript-mode) + ;; js-mode + '("\\.js$" . js-mode) ;; haskell-mode - '("\\.hs$" . haskell-mode) - + '("\\.l?hs$" . haskell-mode) + + ;; octave-mode, the extension is a MATLAB relic. + '("\\.m$" . octave-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) - + '("\\.php$" . php-mode) + '("\\.module$" . php-mode) ;; Drupal modules + ;; python-mode '("\\.pyx?$" . python-mode) ;; ruby-mode '("\\.rake$" . ruby-mode) - '("\\.rb$" . ruby-mode) + '("\\.rb$" . ruby-mode) + ;; Perhaps surprisingly, I do not use Emacs as my PDF viewer. '("\\.pdf$" . fundamental-mode) ) - + auto-mode-alist))