]> gitweb.michael.orlitzky.com - emacs.d.git/commitdiff
Added an indentation hook for ecmascript-mode.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 12 Feb 2010 23:06:57 +0000 (18:06 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 12 Feb 2010 23:06:57 +0000 (18:06 -0500)
mode-hooks.el
mode-hooks/ecmascript-mode-hooks.el [new file with mode: 0644]

index 1f7acd4d3de72fd8305f49d6bb1d8e844e7dc852..37f351438226d2277b8cee1d052031730d1b0cd4 100644 (file)
@@ -5,3 +5,4 @@
 (load-library "css-mode-hooks")
 (load-library "ruby-mode-hooks")
 (load-library "csharp-mode-hooks")
+(load-library "ecmascript-mode-hooks")
diff --git a/mode-hooks/ecmascript-mode-hooks.el b/mode-hooks/ecmascript-mode-hooks.el
new file mode 100644 (file)
index 0000000..45303e4
--- /dev/null
@@ -0,0 +1,7 @@
+(defun esm-hook()
+  (setq c-indentation-style "gnu")
+  (setq c-basic-offset 2)
+  )
+
+
+(add-hook 'ecmascript-mode-hook (function esm-hook))