Skip to content

Latest commit

 

History

History
95 lines (83 loc) · 2.06 KB

Programming-Ruby.org

File metadata and controls

95 lines (83 loc) · 2.06 KB

Ruby

Interface

Completion

(use-package company-inf-ruby)

Tools

Bundler

(use-package bundler
  :load-path "~/projects/emacs/bundler.el")

Rspec

(use-package rspec-mode)

Yari

(use-package yari)

Making it work

Get the base ruby documentation here

gem install rdoc-data
rdoc-data --install

This gets all the rdoc for your installed gems

gem rdoc --all --ri

Mode

Ruby Block mode

This is gone?!?

(use-package ruby-block
  :diminish "[R] "
  :ensure t
  :init
  (setq ruby-block-highlight-toggle t)
  :config)

Rinari

Rinari Is Not A Rails Ide. ESPRYGAA! (Emagicians Starter Pack Rejects Your Goofy Acronym Assertion!)

(use-package rinari
  :ensure t
  :diminish "🚅 ")

Robe

(use-package robe
  :ensure t)

Mode setup

Thanks to the emacs starter kit classic for the list of ode files list. [fn:1]

(use-package ruby-mode
  :interpreter "ruby"
  :mode 
  (("\\.rake$" . ruby-mode)
   ("\\.task$" . ruby-mode)
   ("\\.thor$" . ruby-mode)
   ("\\.gemspec$" . ruby-mode)
   ("\\.rb$" . ruby-mode)
   ("\\.ru$" . ruby-mode)
   ("Rakefile$" . ruby-mode)
   ("Thorfile$" . ruby-mode)
   ("Gemfile$" . ruby-mode)
   ("Capfile$" . ruby-mode)
   ("Vagrantfile$" . ruby-mode))
  :init
  (use-package ruby-tools)
  (emagician/minor-in-major-mode ruby-tools-mode ruby-mode-hook))

Environment

Add RBEnv path

This used to be required to make rbenv work, but not any more.

(emagician/add-to-path (concat (getenv "HOME") "/.rbenv/shims") t)

Footnotes

[fn:1] https://github.com/technomancy/emacs-starter-kit/blob/v2/modules/starter-kit-ruby.el