run ruby from emacs buffer

前端 未结 2 473
独厮守ぢ
独厮守ぢ 2021-02-08 12:13

How can I run a ruby piece of code from a buffer, without actually saving the buffer in a file? A scenario would be to a) switch to the scratch buffer b) M-x ruby-mode c) type

2条回答
  •  死守一世寂寞
    2021-02-08 12:24

    A few options for you to try

    1. Rinari from Github

    It claims to be

    aimed towards making Emacs into a top-notch Ruby and Rails development environment


    2. ruby-compilation.el is what you need.

    There's a thread on that here which I have used and found helpful.

    Chris

提交回复
热议问题