all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* indent with emacs batch mode
@ 2017-01-06 15:29 Ricardo Wurmus
  2017-01-07  5:59 ` Alex Kost
  0 siblings, 1 reply; 9+ messages in thread
From: Ricardo Wurmus @ 2017-01-06 15:29 UTC (permalink / raw)
  To: guix-devel

[-- 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-28 16:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06 15:29 indent with emacs batch mode Ricardo Wurmus
2017-01-07  5:59 ` 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

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.