Skip to content

Commit

Permalink
Added rspec layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Luna committed Sep 18, 2015
1 parent 41459be commit b183a15
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
31 changes: 31 additions & 0 deletions layers/+frameworks/rspec/extensions.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
;;; extensions.el --- rspec Layer extensions 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

(setq rspec-pre-extensions
'(
;; pre extension names go here
))

(setq rspec-post-extensions
'(
;; post extension names go here
))

;; For each extension, define a function rspec/init-<extension-name>
;;
;; (defun rspec/init-my-extension ()
;; "Initialize my extension"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package
49 changes: 49 additions & 0 deletions layers/+frameworks/rspec/packages.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
;;; packages.el --- rspec Layer packages 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

;; List of all packages to install and/or initialize. Built-in packages
;; which require an initialization must be listed explicitly in the list.
(setq rspec-packages
'(
;; package names go here
rspec-mode
))

;; List of packages to exclude.
(setq rspec-excluded-packages '())

(defun rspec/init-rspec-mode ()
(use-package rspec-mode
:defer t
:config
(progn
(spacemacs|diminish rspec-mode " Ƨ" " RSp")

(evil-leader/set-key-for-mode 'enh-ruby-mode
"mps" 'rspec-verify-single
"mpa" 'rspec-verify-all
"mpr" 'rspec-rerun
"mpb" 'rspec-verify-matching
"mpc" 'rspec-verify-continue
"mpm" 'rspec-verify-method
"mpt" 'rspec-toggle-example-pendingness
))))

;; For each package, define a function rspec/init-<package-name>
;;
;; (defun rspec/init-my-package ()
;; "Initialize my package"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package

0 comments on commit b183a15

Please sign in to comment.