Comments (4)
What also works (for me at least) is to use this as the hook in your init file:
(add-hook 'js2-mode-hook 'ac-js2-setup-auto-complete-mode)
from ac-js2.
I got the same issue, could you @distopico explain more about how to solve it?
Debugger entered--Lisp error: (invalid-function ac-define-source)
ac-define-source("js2" ((candidates . ac-js2-ac-candidates) (document . ac-js2-ac-document) (prefix . ac-js2-ac-prefix) (requires . -1)))
ac-js2-setup-auto-complete-mode()
ac-js2-mode()
run-hooks(change-major-mode-after-body-hook prog-mode-hook js2-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook prog-mode-hook js2-mode-hook))
run-mode-hooks(js2-mode-hook)
js2-mode()
set-auto-mode-0(js2-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
from ac-js2.
@ripple0328 just replace line 285 https://github.com/ScottyB/ac-js2/blob/master/ac-js2.el#L285 with this (eval '(ac-define-source "js2"
from ac-js2.
Thanks, it works for me
from ac-js2.
Related Issues (20)
- problem with auto-compilation on Firefox 26.0 (latest)
- Void: cache-table-get HOT 3
- ac-source-js2 breaks every following source in ac-sources HOT 1
- Add an option to avoid continually reparsing HOT 3
- BUG document.(complete) type error FIX
- Request: split company support out into a separate package HOT 4
- BUG document.Math. (complete) ac-js2-build-prop-name-list error: (wrong-type-argument arrayp )
- auto-completion not available with company-mode HOT 4
- No drop down menu HOT 1
- auto-complete error: (void-variable ac-source-js2) HOT 2
- Readme.md
- Error (void-variable for) HOT 3
- Error: No JavaScript AST available HOT 1
- Completion not showing function parameters.
- Freezes Emacs when asked for completion
- Doesn’t work with variable names with underscores
- Completion fails sporadically HOT 4
- Installation instructions don't work in emacs 24? HOT 3
- Lack of release tag HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ac-js2.