cape
🦸cape.el - Completion At Point Extensions (by minad)
tempel
:classical_building: TempEl - Simple templates for Emacs (by minad)
cape | tempel | |
---|---|---|
17 | 15 | |
543 | 475 | |
- | - | |
8.8 | 7.0 | |
26 days ago | 3 months ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cape
Posts with mentions or reviews of cape.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-23.
-
Why does elpaca make emacs startup so much faster?
Wow, interesting that my response is getting down voted. It seems not enough that I give away my work for free. Nevertheless I appreciate support from the community, as other Emacs package developers. The support is actually helpful. To clarify, publishing my configuration would translate into quite a bit of work, requiring separation of private and public bits.
-
Is there a package or something for code completion in org mode files for src blocks?
At least for Elisp source block one can use font locking to create a custom Capf. Add cape-elisp-block from my Cape package to completion-at-point-functions. Even if you don't want to use Cape you could just copy it to your config. It is a short function.
-
Corfu + Consult History?
You can use cape-history from my Cape package. This is similar to consult-history only utilizing completion-in-region instead of completing-read.
-
How to configure corfu for arbitrary orderless matching?
Haven't tried configuring it accordingly, but here's the docs: https://github.com/minad/cape
-
Emacs lags when making the auto completion pop-up with corfu
corfu is blazingly fast. Orderless is as well. What is not always blazingly fast is your completion providing backend. You didn't mention where your slow completions are coming from. An LSP server? Dabbrev? Maybe a remote machine? Have you combined results from various backends (e.g. using cape?). Some completions backends are unavoidably slow, others are just not well optimized.
-
Replacing strings with Unicode symbols.
The most straight forward solution is probably the package company-math. (that's what I use but with corfu and cape)
-
Emacs bankruptcy
Some time I'll add a mixin for Cape which would make the completion stuff really nice.
-
Simplest way to add strings to be used for autocompletion?
If you're set on using the completion system (M-TAB) for this, you could install Cape and use the cape-abbrev command to complete your abbrevs.
-
Like company-org-block, but for completion-at-point, corfu, and friends…
Oh, of course your efforts are valuable. I didn't mean to sound discouraging in any way. The point made by /u/xenodium is good - if you have a special candidate source with special behavior, it makes sense to provide a separate lightweight Capf. In contrast, using Tempel for this purpose doesn't make much use of the actual template functionality. Tempel is only a good fit for Org blocks if you use it already anyway, as I do. There is also value in having reference Capfs around, which will be helpful when developers create their own new completion functions. This was also the intention when I created my Cape package, which comes with many simple Capfs. It is always interesting to see what other Emacs users come up with. I am thankful for such efforts - it is inspiring!
- Sane company completion setup?
tempel
Posts with mentions or reviews of tempel.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-11.
-
Packages that you would like to be in emacs core ?
TempEl could definitely replace tempo.el and even skeleton.el, but IMO the most unobtrusive and valuable addition will be orderless as a build in completion style.
-
org-capture template containing conditional logic based on value read from prompt
I combine org capture templates with the tempel package which is a great templating package.
-
How to develop a menu of phrases?
I would like to second this; writing snippets in this syntax is very easy. There's a new package for this as well: https://github.com/minad/tempel
-
TempEL: use named field as default, but be able to change it locally
I've created an issue for this.
-
Tempel error using tempel in doom emacs
I used the use-package configuration from: https://github.com/minad/tempel.
-
Like company-org-block, but for completion-at-point, corfu, and friends…
Regarding template integration, I was also wondering what org-block-capf/company offers on top. Maybe you can implement some special interactions? I use Tempel with templates like the following configured for org-mode:
-
New package: tempel-collection
A collection of templates for TempEl template engine. The collection is not so big as yasnippet-snippets just because I use a limited set of modes, but pull requests are always welcome. It is available on Melpa.
-
tempel-collections - tempel templates collection for different modes
Big thanks for beautiful template package TempEl
-
Emacs's native templating and snippet fuctionality
Thanks! There's also tempel, which uses the tempo syntax, and so can benefit directly from this library.
-
Please tell me about the different approaches to text expansion you can find in emacs.
I know exactly what I want, but it's such a chore to type out. A good example might be org-mode src blocks. Here I reach for a template-style abbrev/snippet package. Small plug for tempel, which reimagines tempo. Some modern lsp servers even include smart template expansion with "fields" you can hop around between (ya-snippet is good at this). There are lots of "libraries" of useful expansion templates for various modes for many of these tools.
What are some alternatives?
When comparing cape and tempel you can also consider the following projects:
consult-yasnippet
emacs-native-snippets - a collection for snippets that use emac's built in templating utilities
lsp-mode - Emacs client/library for the Language Server Protocol
numpydoc.el - Insert NumPy style docstrings in Python functions.
emacs-bedrock - [Mirror] Stepping stones to a better Emacs experience
Dotfiles - Just a repository for my dotfiles
corfu - :desert_island: corfu.el - COmpletion in Region FUnction
org-noter - Emacs document annotator, using Org-mode
lean4-mode - Emacs major mode for Lean 4
org-block-capf
copilot.el - An unofficial Copilot plugin for Emacs.