#yasnippet — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #yasnippet, aggregated by home.social.
-
#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
-
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. 🔇
-
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 pointWhat I have seen:
#abbrev => does not fit
#company => opened docs, closed it in shock
#yasnippet => hmm, might be itShortest 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).
-
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.
-
It's taken me a while to catch on, bit I finally realised that this is a sensible bit of copy/paste stuff to turn into an #Emacs #Yasnippet for doing #Textual coding.
-
@louis I used to, but not anymore.
Back then I used a LaTeX template with some #elisp glue to address/print/sign/mail it and have several standard paragraphs under some keybindings (pre- #YASnippet times this was).
I think I even had an envelope macro as well which printed the address on the envelope directly, so the only thing left to do at the printer was lick the envelope ;-)
As for what packages were involved, I don't remember.
-
Do you use #YASnippet to write code ?
-
Playing with #YASnippet in #Emacs to add #GNU #GPL at the top of my #Guile files !