ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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?
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):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.