home.social

#yasnippet — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #yasnippet, aggregated by home.social.

  1. #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: emacs.stackexchange.com/q/8554

  2. 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. 🔇

  3. 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

  4. 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.

  5. Today 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).

  6. 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.

  7. 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 for doing coding.

  8. @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.