all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel <guix-devel@gnu.org>
Subject: indent with emacs batch mode
Date: Fri, 06 Jan 2017 16:29:45 +0100	[thread overview]
Message-ID: <87y3yocil2.fsf@elephly.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]

Hi Guix,

here’s how people who don’t use Emacs can indent package expressions
nicely.

Save this file somewhere:


[-- Attachment #2: indent-package-expr.el --]
[-- Type: application/emacs-lisp, Size: 288 bytes --]

[-- Attachment #3: Type: text/plain, Size: 576 bytes --]


Enter an environment where Emacs and emacs-guix are available:

    guix environment --ad-hoc emacs emacs-guix

Then run:

    emacs -q --batch -l indent-package-expr.el  bowtie bla blast+

This will properly indent the package expressions for “bowtie” and
“blast+”, and it will ignore “bla”, because that package doesn’t exist.

This is probably a little heavy-weight because it depends on emacs-guix,
which starts a Guile REPL, but other than that it seems to work fine.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net

             reply	other threads:[~2017-01-06 15:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 15:29 Ricardo Wurmus [this message]
2017-01-07  5:59 ` indent with emacs batch mode Alex Kost
2017-01-07  7:25   ` Ricardo Wurmus
2017-01-08 13:32     ` Alex Kost
2017-01-12 14:01       ` Ludovic Courtès
2017-05-28 16:54         ` Andreas Enge
2017-01-07 21:17   ` Ludovic Courtès
2017-01-07 21:21     ` Ricardo Wurmus
2017-01-08 13:48       ` Alex Kost

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=87y3yocil2.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    /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.