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 YPxbGqhsGGBCdwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 21:03:36 +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 qB8EFqhsGGBJbAAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 21:03:36 +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 C9D10940366 for ; Mon, 1 Feb 2021 21:03:35 +0000 (UTC) Received: from localhost ([::1]:48654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6gMA-0002r1-Pn for larch@yhetil.org; Mon, 01 Feb 2021 16:03:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6gM1-0002qs-9D for help-guix@gnu.org; Mon, 01 Feb 2021 16:03:25 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:44380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6gLz-000245-BF for help-guix@gnu.org; Mon, 01 Feb 2021 16:03:25 -0500 Received: by mail-wr1-x42d.google.com with SMTP id d16so18113039wro.11 for ; Mon, 01 Feb 2021 13:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=user-agent:from:to:subject:message-id:date:mime-version; bh=/al0vg+/RFGn5SR2XvhG8mYDm7Yv+svtmmXTTGwjZeQ=; b=0J9cmFaabOJCwGnSAV2F3D3IeQgSfPVqk+7i6rB/9pmmNUBxOxoliQEd4ldCqyDBk8 CJ8CH7RzOPmrHJqi01iZhhZwS8nBDfYV4CM8s8OpohXA1d45ugrwTe/garEW8R08eCwQ ZCCXSQCJxoDgYnHLJ+MXb2eyH79zFdA0w0iUJCq1CekCtmMD40azDD/51DsKTp3IwWsN 2lHx5n+L66EAkvHddUDKM70PPNt32rL3GSd0ZLbf1J0g++4y0O6qrxc8eFSCZVjTi1gY t1uiYoaB6Gf/9BKx41ToJ3RFyvzqPfsepXCPDwCITl7hJFSEMq9uyzuSOVDgqqzP4sKj aEfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=/al0vg+/RFGn5SR2XvhG8mYDm7Yv+svtmmXTTGwjZeQ=; b=g4tCQLLQ+gCKFP6XAEQmG2E5LXxq8D04MhuqkAnFeo/K8UYl4NmErDD7CrdVjkkEAo k0qX91sBYppc//XUQJzwpsF+99kjboWNdNMuisSF5AwzGPZp5ASyq4WdCAbxsFpuSv04 DCrCMpTIvjH85MPn1/MiqvsJDywosRXkoH8qZ+jc/DOU08pAwv0Xmb7+JMiG+MugWpI9 JjPnZv6Nu03+hWDyhuMS086S+g56PGQFxJS8CsFt4llE+RVIrwQONj+0umNutPP+3pxY NdErQRcd5Wz6Ol4jGbrLhCv7RbMutptLPSanIDSy+qxBJ3MMczVK4Jw0r02imFgi0Yht vNmA== X-Gm-Message-State: AOAM532IJ+QjmE8abi8xJ9p+iKDGsZNMRDdsHrYPQGbp8lMXfilICuZ6 UAgXzOTd1gCivsgk4dgYMQggJhFKnwW+WIfYVMw= X-Google-Smtp-Source: ABdhPJzMKwhZSSY6NtZc/p3xMWDZGgdkfgdWb/trHID7kiq+5+/+U73Ilt1f7q8wJGuPXpqlv1K+ow== X-Received: by 2002:a05:6000:1624:: with SMTP id v4mr20771814wrb.210.1612213401499; Mon, 01 Feb 2021 13:03:21 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id 36sm29765228wrj.97.2021.02.01.13.03.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 13:03:20 -0800 (PST) User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: help-guix@gnu.org Subject: Correct formatting of Guile in Emacs Message-ID: <85v9bbec1e.fsf@beadling.co.uk> Date: Mon, 01 Feb 2021 21:03:19 +0000 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a00:1450:4864:20::42d; envelope-from=phil@beadling.co.uk; helo=mail-wr1-x42d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=0J9cmFaa; 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: C9D10940366 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: pV4Bh4gmkIi3 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.