Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;; 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)
Add Comment
Please, Sign In to add comment