Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created July 6, 2010 21:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citizen428/465950 to your computer and use it in GitHub Desktop.
Save citizen428/465950 to your computer and use it in GitHub Desktop.
;;; 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