all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Nicolas Graves <ngraves@ngraves.fr>, 57069@debbugs.gnu.org
Subject: [bug#57069] Tempel snippets
Date: Tue, 09 Aug 2022 18:52:27 +0200	[thread overview]
Message-ID: <3582f9ef0c1fcc30719dd1479812354169d14277.camel@gmail.com> (raw)
In-Reply-To: <87a68dpvre.fsf@ngraves.fr>

Am Dienstag, dem 09.08.2022 um 12:16 +0200 schrieb Nicolas Graves:
> 
> The first patch of this series introduces the equivalent of current
> yasnippet templates, with the alternative package tempel.
> 
> I eventually chose to make a new folder in snippets dir, and to move
> yasnippet files, hope it's OK.
> 
> It works quite well for me now, but can be improved:
> 
> - I selected completing-read for completion because I'm still
> learning
>   emacs and didn't tackle completion-at-point for now. Would that be
>   better?
Don't.  Use the (s ) field of tempel.  If you have corfu with capf, you
should be able to expand them.  For build-system you might want to add
"-build-system" at the end, so that the user only has to type "gnu",
"maven", etc.  Less fancy than the yas one, but probably just as good.

> - Nested snippets don't seem to work that well (e.g. expanding
>   git-fetch... within the edition of an origin... expansion), I had
>   quite a few bugs. Seems better to finish the current snippet before
>   tackling a sub-snippet (for now at least).
Probably a tempel limitation.  I think it works to M-RET and then
expand at point (using corfu or a tempel binding).  Just printing out
the unexpanded string should be enough for that.


Cheers




  parent reply	other threads:[~2022-08-09 16:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09 10:16 [bug#57069] Tempel snippets Nicolas Graves via Guix-patches via
2022-08-09 10:24 ` [bug#57069] [PATCH 1/4] etc: Add tempel snippets Nicolas Graves via Guix-patches via
2022-08-09 10:24   ` [bug#57069] [PATCH 2/4] etc: Add tempel snippet for :phases Nicolas Graves via Guix-patches via
2022-08-09 10:24   ` [bug#57069] [PATCH 3/4] etc: Add tempel snippet for license: Nicolas Graves via Guix-patches via
2022-08-09 10:24   ` [bug#57069] [PATCH 4/4] etc: Update guix-package yasnippet build-system list Nicolas Graves via Guix-patches via
2022-08-09 16:52 ` Liliana Marie Prikler [this message]
2022-08-11  6:17   ` [bug#57069] Tempel snippets Nicolas Graves via Guix-patches via
2022-08-11 15:53     ` Liliana Marie Prikler
2022-08-16  4:23       ` Andrew Tropin
2022-08-16 16:09         ` Liliana Marie Prikler
2022-08-17  4:26           ` Andrew Tropin
2022-08-11  6:07 ` [bug#57069] [PATCH v2] etc: Add tempel snippets Nicolas Graves via Guix-patches via
2022-08-11 16:21   ` Liliana Marie Prikler
2022-08-12  6:20     ` Nicolas Graves via Guix-patches via
2022-08-30  9:51       ` Liliana Marie Prikler
2022-08-30  9:53         ` bug#57069: " Liliana Marie Prikler
2022-08-12  8:58 ` [bug#57069] [PATCH v3 1/4] " Nicolas Graves via Guix-patches via
2022-08-12  8:58   ` [bug#57069] [PATCH v3 2/4] etc: Add tempel snippet for :phases Nicolas Graves via Guix-patches via
2022-08-12  8:58   ` [bug#57069] [PATCH v3 3/4] etc: Add tempel snippet for license: Nicolas Graves via Guix-patches via
2022-08-12  8:58   ` [bug#57069] [PATCH v3 4/4] etc: Update guix-package yasnippet build-system list Nicolas Graves via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3582f9ef0c1fcc30719dd1479812354169d14277.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=57069@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.