Created
July 6, 2010 21:32
-
-
Save citizen428/465950 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Ruby/Rails development | |
;; RVM support | |
;; Ruby Version Manager | |
(require 'rvm) | |
(rvm-use-default) | |
;; automatically add 'end' after class, module, def etc. | |
;; automatically pair braces, single and double quotes | |
(require 'ruby-electric) | |
(add-hook 'ruby-mode-hook 'ruby-electric-mode) | |
;; Rails support | |
;; jump to corresping model/view/controller, | |
;; find file in project, etc | |
(require 'rinari) | |
(add-hook 'ruby-mode-hook 'rinari-minor-mode) | |
;; whitespace-mode for Ruby code | |
;; helps with cleaning out unnecessary white space | |
(add-hook 'ruby-mode-hook 'whitespace-mode) | |
;; rspec | |
;; run specs in a compilation buffer | |
(add-to-list 'load-path "~/.emacs.d/vendor/rspec-mode") | |
(require 'rspec-mode) | |
;; cucumber | |
;; run features in a compilation buffer | |
(add-to-list 'load-path "~/.emacs.d/vendor/cucumber-mode") | |
(require 'feature-mode) | |
(add-to-list 'auto-mode-alist '("\.feature$" . feature-mode)) | |
;; syntax highlighting etc. for HAML | |
(require 'haml-mode) | |
;; display strings representing colors with | |
;; the color they represent as background | |
(add-to-list 'load-path "~/.emacs.d/vendor/jd-el") | |
(require 'rainbow-mode) | |
(add-hook 'css-mode-hook 'rainbow-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment