Code Monkey home page Code Monkey logo

rbenv.el's Introduction

rbenv.el

use rbenv to manage your Ruby versions within Emacs

Installation

(add-to-list 'load-path (expand-file-name "/path/to/rbenv.el/"))
(require 'rbenv)
(global-rbenv-mode)

Usage

  • global-rbenv-mode activate / deactivate rbenv.el (The current Ruby version is shown in the modeline)
  • rbenv-use-global will activate your global ruby
  • rbenv-use allows you to choose what ruby version you want to use
  • rbenv-use-corresponding searches for .ruby-version and activates the corresponding ruby

Configuration

rbenv installation directory By default rbenv.el assumes that you installed rbenv into ~/.rbenv. If you use a different installation location you can customize rbenv.el to search in the right place:

(setq rbenv-installation-dir "/usr/local/rbenv")

IMPORTANT:: Currently you need to set this variable before you load rbenv.el

the modeline rbenv.el will show you the active ruby in the modeline. If you don't like this feature you can disable it:

(setq rbenv-show-active-ruby-in-modeline nil)

The default modeline representation is the ruby version (colored red) in square brackets. You can change the format by customizing the variable:

;; this will remove the colors
(setq rbenv-modeline-function 'rbenv--modeline-plain)

You can also define your own function to format the ruby version as you like.

Press

If you want to read more about rbenv.el check out the following links:

githalytics.com alpha

rbenv.el's People

Contributors

senny avatar lafrenierejm avatar shosti avatar johnbellone avatar shellbj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.