This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/ruby/config.el
syl20bnr 0c6682cbd1 Refactor one more time the auto-completin macros
It is important to define the buffer local backend variables
in a config.el otherwise it is not available in the layer
configuration if the auto-completion layer is removed.
There were also some issues by hiding the explicit
configuration of company inside a macro, for instance
helm-spacemacs is unable to display the company package
configured in a given layer if the auto-completion layer
is removed.
2015-04-09 00:03:51 -04:00

34 lines
1 KiB
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)
(defvar ruby-version-manager nil
"If non nil defines the Ruby version manager (i.e. rbenv, rvm)")
(defvar ruby-enable-ruby-on-rails-support nil
"If non nil we'll load support for Rails (haml, features, navigation)")
;; not supported for now
;; (setq ruby/key-binding-prefixes
;; '(("mr" . "RoR")
;; ("mrc" . "RoR-compile/generate")
;; ("mrg" . "RoR-goto")
;; ("mrf" . "RoR-find")
;; ("mrr" . "RoR-rake")
;; ("mrR" . "RoR-refactoring")
;; ("mrs" . "RoR-REPL")
;; ("mrx" . "RoR-run")))
;; (mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
;; ruby/key-binding-prefixes)