How to get corfu completions that include substring matches?

This page summarizes the projects mentioned and recommended in the original post on /r/emacs

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • orderless

    Emacs completion style that matches multiple regexps in any order

  • You probably want to investigate completion styles. There are many builtin styles, from basic, which just does prefix completion, on up. But there are also 3rd party styles. One of the most powerful is called orderless. Considering all these styles, there really is a ton of flexibility in how you can get to a completion candidate like some-named-something (some, s-n-s, sns, soso, [a-z]{4}-na, e\b \bs, ...). You can even configure more than one style at a time (and usually do).

  • corfu

    :desert_island: corfu.el - COmpletion in Region FUnction

  • Another very important category of completion backends with their own opinions: lsp servers. LSP servers care nothing about how Emacs has its completion styles configured. They produce the completion candidates they think are relevant at the current position. And this varies greatly among servers. Some are quite generous and give you all kinds of flexible matches. Some provide prefix-matches only (like dabbrev). Some limit their list to a fixed number of candidates. Etc. See the corfu wiki for more on this.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts