Skip to content

Commit

Permalink
[Fix #1432] cider-grimoire errors out in ClojureScript buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba authored and bbatsov committed Jan 19, 2016
1 parent d710cd7 commit c66d336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cider-grimoire.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Prompts for the symbol to use, or uses the symbol at point, depending on
the value of `cider-prompt-for-symbol'. With prefix arg ARG, does the
opposite of what that option dictates."
(interactive "P")
(when (derived-mode-p 'clojurescript-mode)
(user-error "`cider-grimoire' doesn't support ClojureScript"))
(funcall (cider-prompt-for-symbol-function arg)
"Grimoire doc for"
#'cider-grimoire-lookup))
Expand Down

0 comments on commit c66d336

Please sign in to comment.