comparison .emacs @ 75:89a64b0d6146

adding indentation for javascript
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 09 Jun 2010 17:36:20 -0700
parents c11f2794a123
children 339805e00f03
comparison
equal deleted inserted replaced
74:7522c4a51860 75:89a64b0d6146
4 (setq make-backup-files nil) 4 (setq make-backup-files nil)
5 (put 'downcase-region 'disabled nil) 5 (put 'downcase-region 'disabled nil)
6 (setq truncate-lines nil) 6 (setq truncate-lines nil)
7 (setq truncate-partial-width-windows nil) 7 (setq truncate-partial-width-windows nil)
8 (setq use-file-dialog nil) 8 (setq use-file-dialog nil)
9
10 ;; indentation
11
12 ;; python indentation
9 (setq python-indent 2) 13 (setq python-indent 2)
10 (setq-default py-indent-offset 2) 14 (setq-default py-indent-offset 2)
11 (setq python-guess-indent nil) 15 (setq python-guess-indent nil)
16
17 ;; javascript indentation: http://www.brgeight.se/downloads/emacs/javascript.el
18 (setq javascript-indent-level 2)
19
12 (setq-default indent-tabs-mode nil) 20 (setq-default indent-tabs-mode nil)
13 (defface extra-whitespace-face '((t (:background "pale green"))) "Used for tabs and such.") 21 (defface extra-whitespace-face '((t (:background "pale green"))) "Used for tabs and such.")
14 22
15 (autoload 'doctest-mode "doctest-mode" "doctest editing mode." t) 23 (autoload 'doctest-mode "doctest-mode" "doctest editing mode." t)
16 24