Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Minor mode for editing RubyOnRails code in Emacs

branch: master

This branch is 0 commits ahead and 0 commits behind master

Merge pull request #9 from remvee/rails-scripts

Use appropriate command invocations for rails tasks.
latest commit bab74aa5a9
Remco van 't Veer authored
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.textile cleanup setup of auto-mode-alist and add Capfile and *.prawn March 04, 2010
Octocat-spinner-32 behave-rails.el
Octocat-spinner-32 inflections.el [#13306] Defer construction of the inflections list at evaluation September 19, 2008
Octocat-spinner-32 rails-bytecompile.el Silence 'cl compile warnings February 29, 2012
Octocat-spinner-32 rails-cmd-proxy.el improve running specs for rails 3 and capybara September 18, 2011
Octocat-spinner-32 rails-controller-layout.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
Octocat-spinner-32 rails-controller-minor-mode.el
Octocat-spinner-32 rails-core.el
Octocat-spinner-32 rails-features.el
Octocat-spinner-32 rails-find.el
Octocat-spinner-32 rails-fixture-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created April 03, 2007
Octocat-spinner-32 rails-functional-test-minor-mode.el
Octocat-spinner-32 rails-helper-minor-mode.el
Octocat-spinner-32 rails-integration-test-minor-mode.el
Octocat-spinner-32 rails-layout-minor-mode.el
Octocat-spinner-32 rails-lib-layout.el
Octocat-spinner-32 rails-lib-minor-mode.el Modified emacs-rails for RSpec support February 27, 2009
Octocat-spinner-32 rails-lib.el
Octocat-spinner-32 rails-log.el
Octocat-spinner-32 rails-mailer-minor-mode.el
Octocat-spinner-32 rails-migration-minor-mode.el rails-model-layout.el (rails-model-layout:keymap): created April 03, 2007
Octocat-spinner-32 rails-model-layout.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
Octocat-spinner-32 rails-model-minor-mode.el
Octocat-spinner-32 rails-navigation.el
Octocat-spinner-32 rails-plugin-minor-mode.el
Octocat-spinner-32 rails-project.el
Octocat-spinner-32 rails-rake.el
Octocat-spinner-32 rails-refactoring.el
Octocat-spinner-32 rails-rspec-controller-minor-mode.el
Octocat-spinner-32 rails-rspec-fixture-minor-mode.el Modified emacs-rails for RSpec support February 27, 2009
Octocat-spinner-32 rails-rspec-lib-minor-mode.el
Octocat-spinner-32 rails-rspec-minor-mode.el
Octocat-spinner-32 rails-rspec-model-minor-mode.el Merge commit 'remvee/master' into work March 03, 2009
Octocat-spinner-32 rails-ruby.el
Octocat-spinner-32 rails-scripts.el
Octocat-spinner-32 rails-shoulda.el
Octocat-spinner-32 rails-spec.el
Octocat-spinner-32 rails-speedbar-feature.el
Octocat-spinner-32 rails-test.el
Octocat-spinner-32 rails-ui.el
Octocat-spinner-32 rails-unit-test-minor-mode.el
Octocat-spinner-32 rails-view-minor-mode.el Replace "C-c" with "C-c ," and "C-c C-c" with "C-c , ," May 15, 2013
Octocat-spinner-32 rails-ws.el
Octocat-spinner-32 rails.el
README.textile

It is minor mode for editing Ruby On Rails code with Emacs.

Features

  • Navigation
    Go from unit test to model to controller to functional test to view to spec etc.
  • Running tests and specs
    Run test or spec for the current model, controller, lib etc.
  • Console and webserver
    Run this console and webserver in a buffer.
  • Snippets
    Use snippets to speedup code writing and editing.

Try C-h b to find out what key bindings are available and see M-x customize-group <RET> rails for all the knobs and switches.

Installation

Dependencies

Before you install this package make sure the following dependencies met:

  • Ruby Mode
  • Inferior Ruby Mode

These are installable via the ELPA or using apt-get install ruby-elisp. Some Emacs distributions include them by default.

Rails-minor-mode

Pull the latest version from github:

  git clone git://github.com/remvee/emacs-rails.git ~/.emacs.d/rails-minor-mode

Hook it up in your .emacs or .emacs.d/init.el with something like:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/rails-minor-mode"))
  (require 'rails)

You’re ready to go.

Extra’s

You can find HAML and SASS support via ELPA.

RHTML-mode

The latest from github:

  git clone git://github.com/eschulte/rhtml.git ~/.emacs.d/rhtml-minor-mode

Hook it up:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/rhtml-minor-mode"))
  (require 'rhtml-mode)

YAML-mode

Latest from subversion repo:

  svn co http://svn.clouder.jp/repos/public/yaml-mode/trunk/ ~/.emacs.d/yaml-mode

Hook it up:

  (add-to-list 'load-path (expand-file-name "~/.emacs.d/yaml-mode"))
  (require 'yaml-mode)

Bugs

Yes! Plenty! And most of them known, ignored and yearning for your attention! Please fork this repository and fix the stuff that bothers you.

Credits

A big thanks to Dmitry Galinsky for starting this project. Since then a lot of people touched it too, checkout the commit logs.

Something went wrong with that request. Please try again.