summaryrefslogtreecommitdiff
path: root/cider-grimoire.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-01-10 21:29:45 +0000
committerBozhidar Batsov <bozhidar@batsov.com>2016-01-19 18:36:29 +0200
commitc66d336228f869a7de41b077607f2af26601b166 (patch)
tree0f581008a7912e1062a1733db35d78729d6a9b8c /cider-grimoire.el
parentd710cd78e9455abff58e9eef10f542dc2ac5b2fa (diff)
[Fix #1432] cider-grimoire errors out in ClojureScript buffers
Diffstat (limited to 'cider-grimoire.el')
-rw-r--r--cider-grimoire.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-grimoire.el b/cider-grimoire.el
index 80df5555..79930f65 100644
--- a/cider-grimoire.el
+++ b/cider-grimoire.el
@@ -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))