murtaza52
murtaza52

Reputation: 47431

need help installing emacs rails reloaded

Hi I am trying to install the emacs rails reloaded mode from https://github.com/dima-exe/emacs-rails-reloaded.

As per the directions I have cloned the repo and added the lines to my .emacs file. However it asks for byte compiling by -

Next bytecompile, press [M-x] and type rails/bytecompile.

However I cant find that function, what do I do ?

Upvotes: 1

Views: 160

Answers (1)

Thomas
Thomas

Reputation: 17422

Note that you should restart Emacs between the steps

After that add bellow code in your the .emacs file:

(setq load-path (cons (expand-file-name "~/.emacs.d/rails-reloaded") load-path))
(require 'rails-autoload)

and

Next bytecompile, press [M-x] and type rails/bytecompile.

Also, before restarting, make sure that you have changed "~/.emacs.d/rails-reloaded" to the actual path where the file rails-autoload.el lives. If you cloned the git repository, that path name should almost certainly end in emacs-rails-reloaded (and not just rails-reloaded).

If that path is incorrect, Emacs will report an error when it tries to execute (require 'rails-autoload). If it is correct, M-x rails/bytecompile should work.

Upvotes: 2

Related Questions