From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Ruby on Rails with emacs24 Date: Mon, 22 Jul 2013 03:00:19 +0400 Message-ID: <87a9lfecxo.fsf@yandex.ru> References: <51EC1DEF.8050904@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374447652 4428 80.91.229.3 (21 Jul 2013 23:00:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jul 2013 23:00:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Markus Grunwald Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 01:00:55 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V12cZ-0006Wl-1v for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jul 2013 01:00:55 +0200 Original-Received: from localhost ([::1]:52421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V12cY-0003I4-OS for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Jul 2013 19:00:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V12cA-0003Fu-HT for help-gnu-emacs@gnu.org; Sun, 21 Jul 2013 19:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V12c4-0002W2-Dr for help-gnu-emacs@gnu.org; Sun, 21 Jul 2013 19:00:30 -0400 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:48171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V12c4-0002Vy-6X for help-gnu-emacs@gnu.org; Sun, 21 Jul 2013 19:00:24 -0400 Original-Received: by mail-la0-f48.google.com with SMTP id lx15so4745425lab.35 for ; Sun, 21 Jul 2013 16:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding :x-antivirus:x-antivirus-status; bh=aNXwXFkINcAYa2btgc8YCrUYiAfdbnKVIZ0IwrtdNgI=; b=jlHBlmLyA68yaa9uUQf5PARA8lY9Lh7D3L7H63XcZwiGiCdSAHQIzakZide56vZnQW fhLnB71DQ55pRAbCJiYIyu4rBzM8LOLPQ/vws//zCs6JBRhhWbKE9KZmR5258vl8FprH lCQehRL0+ptRY0AY9VRGlQ21sdRXoHrJ2fkdk7O8o+nsvgeOee9NXLCqxbZPiw29SwMY 6SmjvUKq1RaVBcR0LZyDLYyXq0T7cEyltbgJKCu1K79xt6IErDisxvt0sCjb0HOAT1EX T/bmpwxwxKd5i+bzIPjDSsAw5b49TbdXYiBnOXEbCnayW/ScGRc4YVHYKqlDgusDiA/+ 0HIQ== X-Received: by 10.112.235.104 with SMTP id ul8mr11143704lbc.36.1374447622840; Sun, 21 Jul 2013 16:00:22 -0700 (PDT) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPSA id p10sm10050740lap.8.2013.07.21.16.00.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 16:00:22 -0700 (PDT) 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") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Antivirus: avast! (VPS 130721-1, 21.07.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92302 Archived-At: 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 =E2=80=A6 wel= l =E2=80=A6 >> 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=C3=B6hler 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 grea= t 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/