From 30459da0eba664ab8854ec788b211a6c2906afe7 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 10 Jan 2013 10:18:07 +0000 Subject: [PATCH] Add the class cache function to the end of nrepl-connected-hook Whatever the cause of issue #24, it seems more correct to add this hook function *after* `nrepl-enable-on-existing-clojure-buffers`. --- ac-nrepl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ac-nrepl.el b/ac-nrepl.el index cb93510..0fcfc29 100644 --- a/ac-nrepl.el +++ b/ac-nrepl.el @@ -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."