Skip to content

Instantly share code, notes, and snippets.

@dunn
Created August 5, 2015 03:02
Show Gist options
  • Save dunn/d3396cfb3121a41071d3 to your computer and use it in GitHub Desktop.
Save dunn/d3396cfb3121a41071d3 to your computer and use it in GitHub Desktop.
diff --git a/ac-js2.el b/ac-js2.el
index 1b010e2..9325735 100644
--- a/ac-js2.el
+++ b/ac-js2.el
@@ -282,11 +282,11 @@ string contain a function prototype."
"Setup ac-js2 to be used with auto-complete-mode."
(add-to-list 'ac-sources 'ac-source-js2)
(auto-complete-mode)
- (ac-define-source "js2"
- '((candidates . ac-js2-ac-candidates)
- (document . ac-js2-ac-document)
- (prefix . ac-js2-ac-prefix)
- (requires . -1))))
+ (eval '(ac-define-source "js2"
+ '((candidates . ac-js2-ac-candidates)
+ (document . ac-js2-ac-document)
+ (prefix . ac-js2-ac-prefix)
+ (requires . -1)))))
;;; Completion at point function
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment