Enable built-in Ruby Mode, by default on Emacs 24.4 and newer where it was significantly improved. Otherwise keep using Enh Ruby Mode. Add all keybindings to both modes, and provide a variable to change the default mode.
25 lines
676 B
EmacsLisp
25 lines
676 B
EmacsLisp
;;; config.el --- Ruby Layer configuration File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
;; Variables
|
|
|
|
(spacemacs|defvar-company-backends enh-ruby-mode)
|
|
(spacemacs|defvar-company-backends ruby-mode)
|
|
|
|
(defvar ruby-use-built-in-ruby-mode nil
|
|
"If non-nil, use built-in Ruby Mode.
|
|
|
|
Otherwise use Enh Ruby Mode, which is the default.")
|
|
|
|
(defvar ruby-version-manager nil
|
|
"If non nil defines the Ruby version manager (i.e. rbenv, rvm)")
|