]> err.no Git - dotfiles/commitdiff
autoload javascript-mode; make tabs allowed
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 5 Jan 2007 09:54:33 +0000 (09:54 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Fri, 5 Jan 2007 09:54:33 +0000 (09:54 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@983 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

emacs

diff --git a/emacs b/emacs
index 0648f93bbd71d0042cc143d6d05883d8cd707794..fcee4afa3d1e83fc4d4ae2d5d8a8860e184818f2 100644 (file)
--- a/emacs
+++ b/emacs
       display-time-string-forms '(24-hours ":" minutes))
 
 (setq show-trailing-whitespace t)
-(setq-default indent-tabs-mode nil)
+;(setq-default indent-tabs-mode nil)
 (cw/for-emacs-21-and-later
  (define-coding-system-alias 'iso885915 'iso-8859-15)
  (define-coding-system-alias 'utf8 'utf-8)
   (setq tab-width 8)
   (setq indent-tabs-mode t)
   (setq c-basic-offset 8))
+
+(autoload 'javascript-mode "javascript-mode" "JavaScript mode" t)
+(setq auto-mode-alist (append '(("\\.js$" . javascript-mode))
+                              auto-mode-alist))
+