Permalink
Browse files

Associate bundler files with ruby-mode.

  • Loading branch information...
1 parent c5cf137 commit 96d18e9b0e550643e7b635090501e2f8a82b7336 @barendt committed Feb 7, 2012
Showing with 13 additions and 0 deletions.
  1. +12 −0 .emacs
  2. +1 −0 .emacs-lisp/coffee-mode
View
12 .emacs
@@ -1,6 +1,17 @@
;; Add ~/emacs-lisp to load-path
(setq load-path (cons "~/.emacs-lisp" load-path))
+(add-to-list 'load-path "~/.emacs-lisp/coffee-mode")
+(require 'coffee-mode)
+(defun coffee-custom ()
+ "coffee-mode-hook"
+ (set (make-local-variable 'tab-width) 2))
+
+(add-hook 'coffee-mode-hook
+ '(lambda() (coffee-custom)))
+
+(global-font-lock-mode 1)
+
(define-key key-translation-map [?\C-h] [?\C-?])
;; Display line an dcolumn numbers
@@ -50,6 +61,7 @@
(add-to-list 'load-path "~/.emacs-lisp/ruby-mode/")
(autoload 'ruby-mode "ruby-mode" "Major mode for editing ruby scripts." t)
(setq auto-mode-alist (cons '(".rb$" . ruby-mode) auto-mode-alist))
+(setq auto-mode-alist (cons '(".builder$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist (cons '(".rhtml$" . html-mode) auto-mode-alist))
(add-to-list 'auto-mode-alist '("\\.js\\'" . javascript-mode))
Submodule coffee-mode added at 244d4b

0 comments on commit 96d18e9

Please sign in to comment.