[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

indent with emacs batch mode

From: Ricardo Wurmus
Subject: indent with emacs batch mode
Date: Fri, 06 Jan 2017 16:29:45 +0100
User-agent: mu4e 0.9.18; emacs 25.1.1

Hi Guix,

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

Save this file somewhere:

Attachment: indent-package-expr.el
Description: application/emacs-lisp

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.


GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]