summaryrefslogtreecommitdiff
path: root/cider-classpath.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2015-01-24 23:10:12 +0200
committerBozhidar Batsov <bozhidar@tradeo.com>2015-01-24 23:10:12 +0200
commit72e8e1926c9859b009221552483c2590eb7b26f3 (patch)
treef157d6cc5e1a11891034a557426d76469d20b689 /cider-classpath.el
parentf7239a2007f788788865aa596582c3eba5c85d52 (diff)
Take care of a compilation warning
Diffstat (limited to 'cider-classpath.el')
-rw-r--r--cider-classpath.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/cider-classpath.el b/cider-classpath.el
index 076378fd..7a3d929b 100644
--- a/cider-classpath.el
+++ b/cider-classpath.el
@@ -36,6 +36,11 @@
(define-key map "p" 'previous-line)
map))
+(defvar cider-classpath-mouse-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map [mouse-1] 'cider-classpath-handle-mouse)
+ map))
+
(define-derived-mode cider-classpath-mode special-mode "classpath"
"Major mode for browsing the entries in Java's classpath.
@@ -96,9 +101,6 @@
(-when-let (entry (completing-read "Classpath entries: " (cider-sync-request:classpath)))
(find-file-other-window entry)))
-(defvar cider-classpath-mouse-map (make-sparse-keymap))
-(define-key cider-classpath-mouse-map [mouse-1] 'cider-classpath-handle-mouse)
-
(provide 'cider-classpath)
;;; cider-classpath.el ends here