From: Michael Orlitzky Date: Fri, 12 Feb 2010 23:06:57 +0000 (-0500) Subject: Added an indentation hook for ecmascript-mode. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=dfb4bf0392f45630fc892d26a2216411d85e767f;p=emacs.d.git Added an indentation hook for ecmascript-mode. --- diff --git a/mode-hooks.el b/mode-hooks.el index 1f7acd4..37f3514 100644 --- a/mode-hooks.el +++ b/mode-hooks.el @@ -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 index 0000000..45303e4 --- /dev/null +++ b/mode-hooks/ecmascript-mode-hooks.el @@ -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))