all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Correct formatting of Guile in Emacs
@ 2021-02-01 21:03 Phil
  2021-02-01 21:18 ` Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Phil @ 2021-02-01 21:03 UTC (permalink / raw)
  To: help-guix

Hi,

I'm in a position where I have quite a few packages built that I'd like
to contribute to Guix.

I'm writing these in emacs with scheme-mode/geiser installed.  However
I've noted that any attempt to align my Guile code (eg M-x indent-region)
results in code being aligned under the previous lines' parameter rather
than simply indenting.

So my code looks much wider, and uglier (IMHO) than that in the Guix repo:

(something like
  (this type
    (of format)))

ends up being reformated by Emacs to look like this:

(something like
           (this type
                 (of format)))

The more nesting and split lines the crazier this gets.  Some packages
are unreadable using emacs' default scheme indentation without a large monitor!

It seems like an simple question (hopefully not too off-topic!) - but
how do I make Emacs conform to code alignments rules adopted by Guile/Guix repo?

Is there an off-the-shelf setting, package or setup I can use?

The Guile manual mentions "Emacs has good support for Scheme out of the
box, with sensible indentation rules" - but these defaults seem at odds
with the Guix repo (or I'm doing something daft!):

https://www.gnu.org/software/guile/manual/html_node/Using-Guile-in-Emacs.html#Using-Guile-in-Emacs


Thanks,
Phil.


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

end of thread, other threads:[~2021-02-01 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 21:03 Correct formatting of Guile in Emacs Phil
2021-02-01 21:18 ` Cameron
2021-02-01 22:15   ` Phil

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.