使用emacs在rails应用程序开发ruby的提示和技巧 [英] Tips and tricks for using emacs to develop a ruby on rails app

查看:113
本文介绍了使用emacs在rails应用程序开发ruby的提示和技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

什么是最好的模式,配置设置或任何使emacs的rails应用程序开发ruby的东西。 >你应该尝试所有的RoR,并尽可能的放在你最喜欢的那个。



首先你应该看看马歇尔·凡德里夫的a href =http://platypope.org / yada / emacs-demo /rel =noreferrer>使用ECB,红宝石模式,emacs-rails等一些其他东西的优秀截屏。它给你一个很好的感觉,在Emacs上写的RoR很酷。



简而言之,你应该尝试一些模式:




  • Rinari - 一个简单的框架来绕过你的代码,运行测试和管理控制台,Web服务器等。它是简约的,围绕一系列键绑定。

  • Emacs-rails - Emacs RoR模式的祖父。它暂时没有更新,实际上主要的主页已经不存在了。但是它是非常强大的,可以让你做几乎所有的事情。

  • Emacs-rails-reloaded - 这是一个重新设计的原始emacs-rails,我相信同一个人。它使用了伟大的任何模式来帮助您找到事物并摆脱困境。我正在使用这个AND rinari。



这里有一些其他有用的模式:




  • ECB - Emacs代码浏览器。 Yasnippet

  • - 提供各种有用的片段,并自动插入TAB键。

  • Nxhtml - 用于编辑rhtml,erb等。



尝试:





哦和当然,你需要红宝石模式,它带有红宝石源,并由Matz自己维护。



希望这有助于


What are the best modes, configuration settings, or anything that makes developing a ruby on rails app in emacs better.

解决方案

You should try all the RoR and settle on the one you like best.

First you should check out Marshall Vandegrift's excellent screencast using ECB, ruby-mode, emacs-rails, and some other stuff. It gives you a good feel for how cool writing RoR on Emacs can be.

In short here are some of the modes you should try:

  • Rinari - A simple framework for getting around your code, running tests, and managing consoles, web-servers, etc. It's minimalistic and revolves around a series of key-bindings.
  • Emacs-rails - the grandfather of Emacs RoR modes. It hasn't been updated in a while, and in fact the primary homepage no longer exists. But it's quite powerful and lets you do almost everything.
  • Emacs-rails-reloaded - This is a re-design of the original emacs-rails, I believe by the same guy. It uses the the great anything mode to help you find things and get around. I am using this AND rinari currently.

Here are some other modes that are useful:

  • ECB - the Emacs Code Browser. Use it for project management, and getting around your code.
  • Yasnippet - provides all kinds of useful snippets, automatically inserted with the TAB key.
  • Nxhtml - For editing rhtml, erb, etc.

More modes you might try:

  • Ri - for viewing ri documentation inline.
  • Flymake-ruby - on the fly syntax checking.
  • Ri - for viewing ri documentation

Oh and of course you need ruby-mode, which comes with the ruby source, and is maintained by Matz himself.

Hope this helps

这篇关于使用emacs在rails应用程序开发ruby的提示和技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆