unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart <jgart@dismail.de>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: emacs-flymake-guix `guix lint -n`
Date: Thu, 14 Jul 2022 20:49:37 -0500	[thread overview]
Message-ID: <20220714204937.GB1464@gac> (raw)
In-Reply-To: <86zghc2fe4.fsf@gmail.com>

On Thu, 14 Jul 2022 11:49:07 +0200 zimoun <zimon.toutoune@gmail.com> wrote:
> Hi,
> 
> On Wed, 13 Jul 2022 at 21:18, jgart <jgart@dismail.de> wrote:
> > Hi Guixers is there currently an emacs package that provides a flymake backend for `guix lint -n`?
> 
> What do you mean?

See this collection of flymake backends, for example:

https://github.com/mohkale/flymake-collection/tree/release/src/checkers

I mean to have lint warnings show up as you're editing a guix package
in an emacs buffer and have it be integrated into the built-in flymake:

https://www.gnu.org/software/emacs/manual/html_mono/flymake.html


> Well, the Emacs package emacs-guix allows to use “guix lint” from
> Emacs.  Maybe improving this emacs-guix could be worth.  Or another
> fresh one just for linting; I do not know. :-)

Maybe adding a linter to flymake-collection might be the easiest.

I think the `guix lint` implementation in emacs-guix lets you run the
command manually but it's not integrated into a syntax checker like
flymake.

Correct me if I'm wrong on that.

all best,

jgart


      reply	other threads:[~2022-07-15  1:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-14  2:18 emacs-flymake-guix `guix lint -n` jgart
2022-07-14  9:49 ` zimoun
2022-07-15  1:49   ` jgart [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20220714204937.GB1464@gac \
    --to=jgart@dismail.de \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).