#Emacs community. Anyone proficient in combining #company_mode, #Eglot and #yasnippet. I have a yasnippet defined and it expands even without a valid prefix, just after a space character.

My company backends are, according to company-diag:

company-backends: ((company-capf :with company-yasnippet))

More details: https://emacs.stackexchange.com/q/85540/12065

Completion in eglot with yasnippet should not trigger on empty prefix

Can anyone explain and provide a hint how to fix the behavior exhibited in the following call to company-diag? Emacs 30.2 ... Company 20250911.129 company-backends: ((company-capf :with company-

Emacs Stack Exchange

Fun project for the holidays. Let's find out how unified the snippets for programming languages in #Yasnippet are and maybe unify them.
My goal is to make sure that, for example, the snippet for creating a class is always invoked by typing CL regardless of the language I am programming in.
A kind of unified snippet language.

#emacs

For ease of adoption, #lsp. For appearance aesthetic, #eglot. I guess I'm in a prolonged bake-off in #Emacs to see which one works better for me. Now if only I would remember I also have #yasnippet at my disposal, I might save a few hundred keystrokes. Not that it matters on this 10-year-old #mechanicalkeyboard. What color switches you ask? 📢 BUCKLING SPRING COLOR SWITCHES. 🔇

#emacs geeks. Need help with weird intersection of yasnippet and org-mode.

I created a really simple snippet (1st image) BUT the begin…end block comes out collapsed when i invoke it (2nd image), AND when i fill out the $1 variable and hit tab it just toggles the begin…end block being folded or not (3rd image) instead of moving the cursor to the $0

Help?

[edit: currently folks are guessing that it's something doom / evil related]

#yasnippet #orgmode

Unlocked the power of #yasnippet on #emacs bwahaha

I am lazy so I am asking:

Editing some #Emacs text, I would like to use text #templates somewhat like follows:

- type template-name prefix, say bla
- invoke key, to see auto-completing list of templates
- template is text to replace bla with other text, leaving cursor at some point

What I have seen:

#abbrev => does not fit
#company => opened docs, closed it in shock
#yasnippet => hmm, might be it

Shortest way to happiness?
#programming

Dudo bastante que superen la efectividad de un autocompletado normal junto con plugins como #YASnippet. Eso sin contar con el consumo energético, efectos en el medioambiente y el hecho de que las plantillas son tuyas encajando con tu forma de escribir código, en vez de intentar encajar con lo que el LLM escriba o estar modificándolo todo el rato para que encaje.

Tardas más en escribir algo que entienda el LLM y corregir su salida que en poner tú mismo el código.

Today #emacs #yasnippet finally "clicked" for me. I'd looked at it previously but didn't spend the time to actually understand how to write them and how they worked (tabbing between fields).

#emacs geeks familiar with #yasnippet

I want to be able to conditionally add a newline when yas-selected-text doesn't end with one. How do I do this?

Here's a Stack Overflow question with a simple example.

https://stackoverflow.com/questions/78711637/how-to-insert-a-newline-if-yas-selected-text-doesnt-end-with-one

[edit: answer is in replies]
--
‡ are there any emacs users left who haven't learned the joys of yasnippet?

how to insert a newline if yas-selected-text doesn't end with one

setup: given the following text ; indentation guides (setq highlight-indent-guides-method 'character) and this snippet #+BEGIN_SRC ${1:elisp} :tangled `yas-selected-text`#+END_SRC $0 problem: If ...

Stack Overflow
I just started using #yasnippet in #emacs and I’m sure it’s not the origin of the name but whenever I see a yas command I hear “YAS QUEEN” in my head.