0

I wanted to use emacs-rails-reloaded. So, I installed it from github. However, when I do the bytecompile step, I get a warning about cl package being required at runtime. So, I added the following to my .emacs file.

(require 'cl)

However, the warning still persists. My complete .emacs file is as follows:

(add-to-list 'load-path "~/.emacs.d/plugins")
(setq load-path (cons (expand-file-name "~/.emacs.d/emacs-rails-reloaded") load-path))
(require 'snippet)
(require 'find-recursive)
(require 'cl)
(require 'inf-ruby)
(autoload 'inf-ruby "inf-ruby" "Run an inferior Ruby process" t)
(autoload 'inf-ruby-setup-keybindings "inf-ruby" "" t)
(eval-after-load 'ruby-mode
  '(add-hook 'ruby-mode-hook 'inf-ruby-setup-keybindings))
(require 'rails-autoload)
(require 'color-theme)
(setq visible-bell t)

When I run M-x rails/console, I get a message saying 'Symbol's function definition is void: inferior-ruby-mode'. I had installed inf-ruby from github to solve that but it does not seem to be working. Please suggest.

2 Answers 2

0

latest commit 0b95b63805 dima-exe authored 4 years ago

This could have been your hint. Yes, it's outdated and unsupported.

The only somewhat updated version of emacs-rails I know of is remvee's fork of the original mode.

1
  • Yeah, I have now realized that emacs-rails is outdated and unsupported. Thanks for pointing me to remvee's fork. I'll try that out sometime.
    – dknight
    Dec 18, 2012 at 6:50
0

What version of Emacs are you using? If it's 24 you can get inf-ruby from marmalade - http://marmalade-repo.org/packages/inf-ruby

You need to install marmalade as a package repository, detailed help for which is available here: http://emacswiki.org/emacs/ELPA#toc2

4
  • I am using Emacs 24. I already have inf-ruby installed. I have inf-ruby.el in ~/.emacs.d/plugins and in the first line of my .emacs I add that folder to my load-path. So, I thought that inf-ruby was loaded properly. M-x ruby-mode works fine too actually.
    – dknight
    Dec 15, 2012 at 14:59
  • well, you' need to paste some of your config then. Dec 16, 2012 at 11:31
  • You have my .emacs pasted above. Please let me know what other configuration files you need.
    – dknight
    Dec 16, 2012 at 19:24
  • There's no such function as inferior-ruby-mode in the inf-ruby package.
    – Dmitry
    Dec 17, 2012 at 4:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.