all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ruby on Rails with emacs24
@ 2013-07-21 13:03 Markus Grunwald
  2013-07-21 17:44 ` Andreas Röhler
       [not found] ` <mailman.1516.1374428584.12400.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Grunwald @ 2013-07-21 13:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I'm an emacs on linux user and just starting to learn ruby on rails. I 
was quite surprised that emacs support for RoR seems to be … well … 
suboptimal ;)

There's a rails-mode, but that's it. I've found tons of information about 
nxhtml, rinari, mumamo, rails, emacs-rails and whatnot. I read lots of 
posts on www.emacswiki.org. But all of the sources that I got were from 
stone age and didn't either match the current ruby nor the current emacs 
version :( Some things worked fine (flymake for example, or a few 
shortcuts from emacs-rails) others were completely messed up like mumamo 
which auto-inserts syntax errors and spams my *Messages* buffer.

Could someone please point me to current ruby on rails support on emacs? 
Or is there only the rails-mode from emacs24?

Thank you very much,
Markus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ruby on Rails with emacs24
  2013-07-21 13:03 Ruby on Rails with emacs24 Markus Grunwald
@ 2013-07-21 17:44 ` Andreas Röhler
  2013-07-21 23:00   ` Dmitry Gutov
       [not found]   ` <mailman.1524.1374447637.12400.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.1516.1374428584.12400.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Andreas Röhler @ 2013-07-21 17:44 UTC (permalink / raw)
  To: help-gnu-emacs

Am 21.07.2013 15:03, schrieb Markus Grunwald:
> Hello,
>
> I'm an emacs on linux user and just starting to learn ruby on rails. I
> was quite surprised that emacs support for RoR seems to be … well …
> suboptimal ;)
>
> There's a rails-mode, but that's it. I've found tons of information about
> nxhtml, rinari, mumamo, rails, emacs-rails and whatnot. I read lots of
> posts on www.emacswiki.org. But all of the sources that I got were from
> stone age and didn't either match the current ruby nor the current emacs
> version :( Some things worked fine (flymake for example, or a few
> shortcuts from emacs-rails) others were completely messed up like mumamo
> which auto-inserts syntax errors and spams my *Messages* buffer.
>
> Could someone please point me to current ruby on rails support on emacs?
> Or is there only the rails-mode from emacs24?
>
> Thank you very much,
> Markus
>

You could try

http://web-mode.org/

Don't know, how far ruby-support goes. Author of nxhtml, which did a great work, seems not reachable any more.
Does somebody know about him?

Andres




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ruby on Rails with emacs24
  2013-07-21 17:44 ` Andreas Röhler
@ 2013-07-21 23:00   ` Dmitry Gutov
  2013-07-22  0:56     ` Bob Proulx
       [not found]   ` <mailman.1524.1374447637.12400.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Dmitry Gutov @ 2013-07-21 23:00 UTC (permalink / raw)
  To: Markus Grunwald; +Cc: help-gnu-emacs


Hi Markus,

> Am 21.07.2013 15:03, schrieb Markus Grunwald:
>> I'm an emacs on linux user and just starting to learn ruby on rails. I
>> was quite surprised that emacs support for RoR seems to be … well …
>> suboptimal ;)

Indeed, there's been some stagnation there.

>> There's a rails-mode, but that's it. I've found tons of information about
>> nxhtml, rinari, mumamo, rails, emacs-rails and whatnot. I read lots of
>> posts on www.emacswiki.org. But all of the sources that I got were from
>> stone age and didn't either match the current ruby nor the current emacs
>> version :(

That's the curse of EmacsWiki: old, outdated content. Reams of it!

If you enumerate the wiki pages and instructions that failed for you,
I'll try to make time to fix or remove the wrong entries.

>> Some things worked fine (flymake for example, or a few
>> shortcuts from emacs-rails) others were completely messed up like mumamo
>> which auto-inserts syntax errors and spams my *Messages* buffer.

Yeah, I wouldn't recommend nXhtml/MuMaMo.

>> Could someone please point me to current ruby on rails support on emacs?
>> Or is there only the rails-mode from emacs24?

I've no idea what's this `rails-mode' you're of. There is an old, mostly
unmaintained package called `emacs-rails', but I wouldn't recommend it
for these and some other reasons.

Rinari [0] is the current tool of choice for jumping between related files
and launching Rails console in a buffer. If you can't get it to work,
first search the issues, then maybe create a new one. Or post a question
here: https://groups.google.com/forum/#!forum/emacs-on-rails

When you're more comfortable with the setup, you can try Robe, for
somewhat better completion, docs and jump-to-definition [1]. Beware:
it's in persistent alpha state, so expect to encounter (and hopefully
report) bugs and missing features.

Also see Steve's config for how the pieces come together [2]. Maybe fork
it and use it yourself, like many people do.

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> You could try
>
> http://web-mode.org/

Yes, web-mode wouldn't be the worst choice for ERB. Personally, I don't
like how the codebase looks and some choices the author made (like not
using the indentation code from existing major modes, for Ruby, JS, etc,
and re-implementing indentation code from scratch; same with syntax
highlighting).

So for ERB and EJS I recommend mmm-mode [3], there are sample settings
in the comment at the top of `mmm-erb.el'. It's slower (thus less
suitable for large files), but IME more accurate.

> Don't know, how far ruby-support goes. Author of nxhtml, which did a great work, seems not reachable any more.
> Does somebody know about him?

Last time I've seen a message from him he we saying that he was busy.
Anyway, I don't imagine working on MuMaMo (in its current state) can be
much fun.

[0] https://github.com/eschulte/rinari
[1] https://github.com/dgutov/robe/
[2] https://github.com/purcell/emacs.d
[3] https://github.com/purcell/mmm-mode/



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ruby on Rails with emacs24
  2013-07-21 23:00   ` Dmitry Gutov
@ 2013-07-22  0:56     ` Bob Proulx
  0 siblings, 0 replies; 6+ messages in thread
From: Bob Proulx @ 2013-07-22  0:56 UTC (permalink / raw)
  To: Markus Grunwald, help-gnu-emacs

Dmitry Gutov wrote:
> > schrieb Markus Grunwald:
> >> Could someone please point me to current ruby on rails support on emacs?
> >> Or is there only the rails-mode from emacs24?
> ...
> Rinari [0] is the current tool of choice for jumping between related files
> and launching Rails console in a buffer.

+1 for Rinari.  I use it with emacs and rails development.  It works.
Well enough that I haven't looked for anything else.

Bob



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ruby on Rails with emacs24
       [not found] ` <mailman.1516.1374428584.12400.help-gnu-emacs@gnu.org>
@ 2013-07-22 11:21   ` Markus Grunwald
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Grunwald @ 2013-07-22 11:21 UTC (permalink / raw)
  To: help-gnu-emacs

Hello Andres,

> http://web-mode.org/
> 
> Don't know, how far ruby-support goes.

This looks really good for erb, html and so on. But ruby/rails seems to 
be a different story. Thank you for the hint!


> Author of nxhtml, which did a great work,
Yes, its seems that nxhtml one was a great thing. Sad, if the author 
doesn't have time to support it…

Thanks for your Answer,
Markus


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ruby on Rails with emacs24
       [not found]   ` <mailman.1524.1374447637.12400.help-gnu-emacs@gnu.org>
@ 2013-07-22 19:19     ` Markus Grunwald
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Grunwald @ 2013-07-22 19:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Dimitry,

Your comments were very helpful :) ! I'm currently trying out your 
suggestions and it looks quite good.

Thank you,
Markus


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-22 19:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-21 13:03 Ruby on Rails with emacs24 Markus Grunwald
2013-07-21 17:44 ` Andreas Röhler
2013-07-21 23:00   ` Dmitry Gutov
2013-07-22  0:56     ` Bob Proulx
     [not found]   ` <mailman.1524.1374447637.12400.help-gnu-emacs@gnu.org>
2013-07-22 19:19     ` Markus Grunwald
     [not found] ` <mailman.1516.1374428584.12400.help-gnu-emacs@gnu.org>
2013-07-22 11:21   ` Markus Grunwald

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.