-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Luna
committed
Sep 18, 2015
1 parent
41459be
commit b183a15
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |