unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sayth Renshaw <flebber.crue@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org, Sayth Renshaw <flebber.crue@gmail.com>
Subject: Re: Ruby and RubyOn Rails setup - Cannot enable indentation and snippets
Date: Wed, 2 Jan 2013 05:24:41 -0800 (PST)	[thread overview]
Message-ID: <b7f63a49-f4ec-49e8-8a86-6ee7da0fea34@googlegroups.com> (raw)
In-Reply-To: <mailman.16475.1357050313.855.help-gnu-emacs@gnu.org>

Thanks for the reply

> Please open an .rb file in Emacs, evaluate (M-:) the following 
> expressions and send the values returned (for long values, you can look 
> in the *Messages* buffer, or use esk-eval-and-replace from emacs-starter-kit): 

> major-mode 
> indent-line-function 
> (find-library-name "ruby-mode") 
> emacs-version

The first 3 returned no match and provided no output.
GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.6.1) of 2012-11-17 on buildvm-13.phx2.fedoraproject.org

> I have tried several variations all done by hand by myself, emacs-starter-kit with ruby loaded, prelude emacs(indents end keyword correctly but does not indent the block) with ruby loaded and cannot get proper indentation, snippets and/or autocompletion. I can get some bits in the installs but it is not ideal. 

>> That sounds positively broken.

Should clarify I tried them individually not all at once. When one failed I zipped the .emacs and emacs.d up and started fresh. I have nothing other than my file currently.

> (require 'yasnippet-bundle) 

> try to install yasnippet from git (https://github.com/capitaomorte/yasnippet/), or from Melpa, 
> mentioned in the README there. 

I used marmalade and elpa is that ok?

> (setq ruby-indent-level 4) 

>> The example at the beginning of your email has a 2-space indentation. 
>> Why are you setting this to 4?

just experimenting to try and get some indenting to work.

> rhtml-mode is also irrelevant.

I thought it was the better option of nxhtml and mumamo on linux.

> I'd like know what gave you the impression that installing 
> rails-reloaded is a good idea. Here's a recent user complaint:

Read this article from Nov 2011
http://tuxdna.wordpress.com/2011/11/12/turbocharge-your-emacs-for-ruby-on-rails-with-rinari-and-rails-reloaded/


http://stackoverflow.com/questions/13890831/emacs-rails-reloaded-does-not-work 

*shameless plug warning* 

> You can try Robe (https://github.com/dgutov/robe) for a less clever, but 
> more comprehensive completion. It falls back to "all methods in all 
> classes" approach much more often, though, and should still be 
> considered WIP. 

> --Dmitry

Thanks will look into it

Sayth



  parent reply	other threads:[~2013-01-02 13:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-01 12:27 Ruby and RubyOn Rails setup - Cannot enable indentation and snippets Sayth Renshaw
2013-01-01 14:24 ` Dmitry Gutov
     [not found] ` <mailman.16475.1357050313.855.help-gnu-emacs@gnu.org>
2013-01-02 13:24   ` Sayth Renshaw [this message]
2013-01-02 14:52     ` Dmitry Gutov
     [not found]     ` <mailman.16528.1357138350.855.help-gnu-emacs@gnu.org>
2013-01-03  6:25       ` Sayth Renshaw
2013-01-03 14:23         ` Dmitry Gutov
2013-01-03 15:15           ` Dmitry Gutov
2013-01-04 11:11             ` Sayth Renshaw
2013-01-04 16:11               ` Dmitry Gutov
     [not found]                 ` <CAN2of03ausUrsd9LNqoN=r4o3YmD8YF=8ObiHqQxEx4QaUvKHw@mail.gmail.com>
2013-01-05  5:42                   ` Dmitry Gutov
2013-01-05 12:53                     ` Sayth Renshaw
2013-01-05 13:04                       ` Sayth Renshaw
2013-01-05 14:59                       ` Dmitry Gutov
2013-01-05 21:07                         ` Sayth Renshaw

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=b7f63a49-f4ec-49e8-8a86-6ee7da0fea34@googlegroups.com \
    --to=flebber.crue@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).