Mercurial > hg > config
changeset 75:89a64b0d6146
adding indentation for javascript
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 09 Jun 2010 17:36:20 -0700 |
parents | 7522c4a51860 |
children | 84ffa220796a |
files | .emacs |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.emacs Tue Jun 08 16:31:58 2010 -0700 +++ b/.emacs Wed Jun 09 17:36:20 2010 -0700 @@ -6,9 +6,17 @@ (setq truncate-lines nil) (setq truncate-partial-width-windows nil) (setq use-file-dialog nil) + +;; indentation + +;; python indentation (setq python-indent 2) (setq-default py-indent-offset 2) (setq python-guess-indent nil) + +;; javascript indentation: http://www.brgeight.se/downloads/emacs/javascript.el +(setq javascript-indent-level 2) + (setq-default indent-tabs-mode nil) (defface extra-whitespace-face '((t (:background "pale green"))) "Used for tabs and such.")