From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0Nv+MTxwGGAhDwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 21:18:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YPSRLTxwGGC9dQAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 21:18:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2B212940356 for ; Mon, 1 Feb 2021 21:18:51 +0000 (UTC) Received: from localhost ([::1]:60246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6gav-0000Vc-LN for larch@yhetil.org; Mon, 01 Feb 2021 16:18:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6gan-0000VE-6N for help-guix@gnu.org; Mon, 01 Feb 2021 16:18:41 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6gal-0000kI-60 for help-guix@gnu.org; Mon, 01 Feb 2021 16:18:40 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1E9E15C017F for ; Mon, 1 Feb 2021 16:18:38 -0500 (EST) Received: from imap36 ([10.202.2.86]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 16:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tindall.space; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=xzrgeyzQ3DUL+8qY1GrdiPFWoDsFMqL bSJC1vi4tuZQ=; b=LdvASYp8/TLsh/pCYd9bnMXu41Eo83HlQ/Ih0ymWZxFDdtQ 2Nq9oKlJUpNhv82c3ZLlxaC2y8B9rjMaYusnz1qyYpIZmvWibchYRmyPVgijdjYU LbjFArVOcJmoEEnkds71cOHScuJ3SDpqzg6yck1NW+j+7OAYHm6YPtDL84A4v7HS +HJ/CRomZZndhX00tUvclg/mex/MVPRWiDH6nedCndZH560h29ChfMMmi1BFzar7 BQ8gtA8O1VYOTBlxwj8JawgPR0V/PVET6KVlbrnpl+qPxf8wBYgHRF5DelN9XyNy ZztIcKRtLeUGakGFNwgfTjxqXGfTTxXznwfhnxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=xzrgey zQ3DUL+8qY1GrdiPFWoDsFMqLbSJC1vi4tuZQ=; b=P9sTL4TVkbjI2RrVf6wJtn v4Mxs//18g58p26BEk1hMuRXU/nCQq+MlQo1h/fx8KO/Ee/opKuZBI9Pr8f/VqfH n8mi3q6E2GAH2O8QyppAn7GPScnbS0JzqCPGMtfKC5HETjrrHvvFKcgkmDnbGHDz J8FLEP/laEKsxL7C51aZ+z0ti9Z2MaRxnH+8H58ojJ1Q8ECgPdSFPaThaVkeKbMj P6bGIkULClNrpCdzaIo98cCfAooHdZSE5tOqkiCr2Ncz3zx9W2BZZkBJfQnlDfy4 RB107p5n7t66VxuNpIq6wgDCdbSm5fZlpNR1GZ8MAS8U4q+3+puGgD9dIV7R1ciA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpeevrghmvghrohhnuceotggrmhesthhinhgurghllhdrshhp rggtvgeqnecuggftrfgrthhtvghrnhepudefvddvveegvdfftdevfeelieeuvefggfevke dvtddujeeuudeuuefhleekudeknecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptggrmhesthhinhgurg hllhdrshhprggtvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9D62010E005E; Mon, 1 Feb 2021 16:18:37 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-93-gef6c4048e6-fm-20210128.002-gef6c4048 Mime-Version: 1.0 Message-Id: In-Reply-To: <85v9bbec1e.fsf@beadling.co.uk> References: <85v9bbec1e.fsf@beadling.co.uk> Date: Mon, 01 Feb 2021 15:18:17 -0600 From: Cameron To: "julia.galaman--- via" Subject: Re: Correct formatting of Guile in Emacs Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=cam@tindall.space; helo=out3-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tindall.space header.s=fm1 header.b=LdvASYp8; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=P9sTL4TV; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 2B212940356 X-Spam-Score: -1.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: kq2fu8P8H+Ly Hi Phil, I haven't done this myself, but the manual has a page on this: https://guix.gnu.org/manual/en/html_node/Formatting-Code.html >From this, it seems like the 'emacs-guix' package has a 'guix-devel-mode' that should indent per the Guix style guide. -Cam On Mon, Feb 1, 2021, at 3:03 PM, Phil wrote: > 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. > >