From: tfheen Date: Fri, 5 Jan 2007 09:54:33 +0000 (+0000) Subject: autoload javascript-mode; make tabs allowed X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c912018f7f6426ccaec43f3e50b63d18903a709;p=dotfiles autoload javascript-mode; make tabs allowed git-svn-id: file:///svn/tfheen/trunk/dotfiles@983 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/emacs b/emacs index 0648f93..fcee4af 100644 --- a/emacs +++ b/emacs @@ -251,7 +251,7 @@ 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) @@ -306,3 +306,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)) +