LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2009, 02:29 AM   #1
Qu3ry
LQ Newbie
 
Registered: Jul 2009
Distribution: ubuntu, fedora, OpenSolaris
Posts: 21

Rep: Reputation: 15
emacs rails installation


I am trying to install emacs rails from github. However, knowing nothing about emacs, I have difficulties in getting emacs-rails to work with emacs. Any help is appreciated

http://github.com/dima-exe/emacs-rails-reloaded/

Quote:
Originally Posted by github.com
== Instalation

Download last release from "github project page":http://github.com/dima-exe/emacs-rai...aded/downloads
and unpack it to directory containing libraries of Emacs, by default it’s
$HOME/.emacs.d/

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)

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


1. I have downloaded and extracted the packages to ~/.emacs.d/ and rename the extracted directory to "rails-reloaded". However, I have no idea where to create or find the .emacs file. To create and place it under ~/.emacs.d/ or ~/.emacs.d/rails-reloaded ?

2. I have typed rails/bytecompile after pressing ALT-x, failed. It said no match.

Last edited by Qu3ry; 11-01-2009 at 03:00 AM.
 
Old 11-01-2009, 07:28 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Those instructions are a bit sketchy, they can't even spell installation.

Your .emacs is usually (see Init File) at ~/.emacs, create it if it doesn't exist.

Quote:
2. I have typed rails/bytecompile after pressing ALT-x, failed. It said no match.
They forgot to mention that will only work after you execute the code you put in the .emacs file. To do that, highlight the code and do M-x eval-region.
 
Old 11-01-2009, 09:17 AM   #3
Qu3ry
LQ Newbie
 
Registered: Jul 2009
Distribution: ubuntu, fedora, OpenSolaris
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks ntubski. I have it compiled. How do I know if it's installed correctly? There seems to have no "rubyonrails" on the menu bar, opposed to what it's shown in the screenshot.

On the old version (SVN and CVS) of the instruction, users are required to install related libraries too. How do I know if it's required in the new version (git)? How to install them if necessary?

http://dima-exe.ru/rails-on-emacs

Quote:
Download and install required libraries

* http://www.kazmier.com/computer/snippet.el
* http://www.webweavertech.com/ovidiu/...-recursive.txt

Alert: From 0.44 release emacs-rails will require the inf-ruby.

After that you must add this code in $HOME/.emacs
P.S

I am on emacs23 from the ubuntu 9.10 repo.

Last edited by Qu3ry; 11-01-2009 at 09:31 AM.
 
Old 11-01-2009, 09:42 AM   #4
Qu3ry
LQ Newbie
 
Registered: Jul 2009
Distribution: ubuntu, fedora, OpenSolaris
Posts: 21

Original Poster
Rep: Reputation: 15
Here is the log

Quote:
Leaving directory `~/'

...snipped...

In end of data:
rails-autoload.el:123:1:Warning: the function `yas/load-directory' is not
known to be defined.


..snipped...

Last edited by Qu3ry; 11-01-2009 at 09:45 AM.
 
Old 11-01-2009, 10:52 AM   #5
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by Qu3ry View Post
Thanks ntubski. I have it compiled. How do I know if it's installed correctly? There seems to have no "rubyonrails" on the menu bar, opposed to what it's shown in the screenshot.
The menu bar items are mode specific, when you open a ruby file it should show up.

Quote:
On the old version (SVN and CVS) of the instruction, users are required to install related libraries too. How do I know if it's required in the new version (git)? How to install them if necessary?
If you get errors like "cannot find inf-ruby" then you know it's necessary (and you should tell the author to update the instructions).

For single file elisp packages you just need to put the .el file somewhere in the Load Path. Something like the following in your .emacs (don't forget to execute it):
Code:
(add-to-list 'load-path (expand-file-name "~/.emacs.d/"))
Then put the .el in ~/.emacs.d/, and see if there are any additional instructions in the comments at the top.

Quote:
In end of data:
rails-autoload.el:123:1:Warning: the function `yas/load-directory' is not
known to be defined.
Probably nothing to worry about.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Ruby on Rails] backticks don't work under rails. bartonski Programming 1 09-08-2009 04:19 PM
Emacs-Rails completion rejeep Linux - Software 4 02-28-2008 04:30 PM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 02:41 AM
LXer: Real world Rails: Caching in Rails LXer Syndicated Linux News 0 05-19-2007 09:16 PM
Emacs Installation coolguy18087 Linux - Software 2 08-02-2002 10:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration