Hexa's Blog

Emacs, Ruby On Rails Configuration

16/05/2015 Ruby on Rails 4

Robe

1. Source: link 2. Features

  • Jump to read the documentation of methods
  • Complete the symbol at point, actually, it will show a list of available method for given character or class

3. Interactive Function

  • M-. to jump to the definition
  • M-, to jump back
  • C-c C-d to see the documentation
  • C-c C-k to refresh Rails environment
  • C-M-i to complete the symbol at point
  • ruby-load-file to update ruby file

Highlight Indentation

1. Source link 2. Feature

  • Color the method columns (scope)
  • User can differentiate current scope to upper and lower scope 3. Variables
(set-face-background 'highlight-indentation-face "#808080")
(set-face-background 'highlight-indentation-current-column-face "#e5e5e5")

4. Interactive Functions

  • highlight-indentation-current-column-mode: current column will be highlighted only or with particular colors.
  • highlight-indentation-mode: highlight all columns.

Ruby-Flymake

1. Source link 2. Feature

  • checking syntax

Reference List

  • Emacs configuration for rails,link