;; 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
'("\\.pyx?$" . python-mode)
(load-library "basic-mode-hooks")
(load-library "csharp-mode-hooks")
(load-library "css-mode-hooks")
-(load-library "ecmascript-mode-hooks")
+(load-library "js-mode-hooks")
(load-library "erc-mode-hooks")
(load-library "haskell-mode-hooks")
(load-library "nxml-mode-hooks")
+++ /dev/null
-(defun esm-hook()
- (setq c-indentation-style "gnu")
- (setq c-basic-offset 2)
- )
-
-
-(add-hook 'ecmascript-mode-hook (function esm-hook))
--- /dev/null
+(defun jsm-hook()
+ (setq js-indent-level 2)
+ )
+
+
+(add-hook 'js-mode-hook (function jsm-hook))