Home

Awesome

rbenv.el

Use rbenv to manage your Ruby versions within GNU Emacs.

Installation

Usage

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-installation-dir variable to search in the right place:

(customize-set-variable 'rbenv-installation-dir "/usr/local/rbenv")

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

(use-package rbenv
  :ensure t
  :init
  (customize-set-variable 'rbenv-installation-dir "/usr/local/rbenv")
  :config (global-rbenv-mode))

The modeline

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

(customize-set-variable '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 rbenv-modeline-function:

;; this will remove the colors
(customize-set-variable '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