all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Markus Grunwald <news.the-grue@spamgourmet.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Ruby on Rails with emacs24
Date: Mon, 22 Jul 2013 03:00:19 +0400	[thread overview]
Message-ID: <87a9lfecxo.fsf@yandex.ru> (raw)
In-Reply-To: <51EC1DEF.8050904@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Sun, 21 Jul 2013 19:44:15 +0200")


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/



  reply	other threads:[~2013-07-21 23:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a9lfecxo.fsf@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=help-gnu-emacs@gnu.org \
    --cc=news.the-grue@spamgourmet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.