Giter VIP home page Giter VIP logo

Comments (4)

dunn avatar dunn commented on August 10, 2024 2

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.

ripple0328 avatar ripple0328 commented on August 10, 2024

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.

 avatar commented on August 10, 2024

@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.

ripple0328 avatar ripple0328 commented on August 10, 2024

Thanks, it works for me

from ac-js2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.