Giter Club home page Giter Club logo

Comments (2)

redguardtoo avatar redguardtoo commented on June 1, 2024

company-backends 是只要最前面的backend匹配搜索关键字返回了结果,后面的backend 就不调用了。这是默认语法。所以你需要把company-jstags放在最前面而不是最后面。

还有其他的一些语法。(company-dabbrev-code company-gtags company-ctags company-keywords)部分表示括号中的所有backend都会查询并返回他们的共同结果。

这个变量的文档值得好好看一下。可以参考我的emacs.d中是如何使用company-backends。

company-mode是emacs的大杀器,别的编辑器和IDE中你是不会有机会混用各种backend(包括你自己写的backend)。很多教程只教一些基本设置是浪费了其潜力。

另外在mode hook中设置变量company-backends,可以考虑用setq-local取代setq. 前者对变量的修改只在当前buffer生效。

from mastering-emacs-in-one-year-guide.

zhyuanyuan avatar zhyuanyuan commented on June 1, 2024

老师你好。这会我又发现个新问题,就是提示内容有里面有重复的代码提示。如下图所示:
这里上传不了图片,我在51cto上有图片

from mastering-emacs-in-one-year-guide.

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.