Skip to content

Commit 82c15e4

Browse files
committed
Unbind the prefix binding when rspec-mode is turned off
1 parent a28c211 commit 82c15e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rspec-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@
163163
(define-minor-mode rspec-mode
164164
"Minor mode for rSpec files"
165165
:lighter " rSpec"
166-
(local-set-key rspec-key-command-prefix rspec-mode-keymap))
166+
(if rspec-mode
167+
(local-set-key rspec-key-command-prefix rspec-mode-keymap)
168+
(local-unset-key rspec-key-command-prefix)))
167169

168170

169171

0 commit comments

Comments
 (0)