Skip to content

Commit

Permalink
Add the class cache function to the end of nrepl-connected-hook
Browse files Browse the repository at this point in the history
Whatever the cause of issue #24, it seems more correct to add this hook
function *after* `nrepl-enable-on-existing-clojure-buffers`.
  • Loading branch information
purcell committed Jan 10, 2013
1 parent e129356 commit 30459da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ac-nrepl.el
Expand Up @@ -140,7 +140,7 @@ Result is a plist, as returned from `nrepl-send-string-sync'."
(message ""))

;;;###autoload
(add-hook 'nrepl-connected-hook 'ac-nrepl-refresh-class-cache)
(add-hook 'nrepl-connected-hook 'ac-nrepl-refresh-class-cache t)

(defun ac-nrepl-candidates-all-classes ()
"Return java method candidates."
Expand Down

0 comments on commit 30459da

Please sign in to comment.