Guest User

Untitled

a guest
May 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. ;;; Ruby/Rails development
  2.  
  3. ;; RVM support
  4. ;; Ruby Version Manager
  5. (require 'rvm)
  6. (rvm-use-default)
  7.  
  8. ;; automatically add 'end' after class, module, def etc.
  9. ;; automatically pair braces, single and double quotes
  10. (require 'ruby-electric)
  11. (add-hook 'ruby-mode-hook 'ruby-electric-mode)
  12.  
  13. ;; Rails support
  14. ;; jump to corresping model/view/controller,
  15. ;; find file in project, etc
  16. (require 'rinari)
  17. (add-hook 'ruby-mode-hook 'rinari-minor-mode)
  18.  
  19. ;; whitespace-mode for Ruby code
  20. ;; helps with cleaning out unnecessary white space
  21. (add-hook 'ruby-mode-hook 'whitespace-mode)
  22.  
  23. ;; rspec
  24. ;; run specs in a compilation buffer
  25. (add-to-list 'load-path "~/.emacs.d/vendor/rspec-mode")
  26. (require 'rspec-mode)
  27.  
  28. ;; cucumber
  29. ;; run features in a compilation buffer
  30. (add-to-list 'load-path "~/.emacs.d/vendor/cucumber-mode")
  31. (require 'feature-mode)
  32. (add-to-list 'auto-mode-alist '("\.feature$" . feature-mode))
  33.  
  34. ;; syntax highlighting etc. for HAML
  35. (require 'haml-mode)
  36.  
  37. ;; display strings representing colors with
  38. ;; the color they represent as background
  39. (add-to-list 'load-path "~/.emacs.d/vendor/jd-el")
  40. (require 'rainbow-mode)
  41. (add-hook 'css-mode-hook 'rainbow-mode)
Add Comment
Please, Sign In to add comment