Skip to content

Commit

Permalink
Fail if the current mode is not derived from python-mode
Browse files Browse the repository at this point in the history
Elpy will also work in modes that are derived from python-mode,
not just python-mode itself.
  • Loading branch information
ChillarAnand authored and jorgenschaefer committed May 17, 2015
1 parent dcc9438 commit c422b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elpy.el
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ virtualenv.
\\{elpy-mode-map}"
:lighter " Elpy"
(when (not (eq major-mode 'python-mode))
(when (not (derived-mode-p 'python-mode))
(error "Elpy only works with `python-mode'"))
(cond
(elpy-mode
Expand Down

0 comments on commit c422b57

Please sign in to comment.