From patchwork Mon Jan 24 18:40:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 36791 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A54C727BBEA; Mon, 24 Jan 2022 19:24:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6B8A627BBE9 for ; Mon, 24 Jan 2022 19:24:08 +0000 (GMT) Received: from localhost ([::1]:47230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC4wh-00022k-E8 for patchwork@mira.cbaines.net; Mon, 24 Jan 2022 14:24:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC4H2-00019L-TD for guix-patches@gnu.org; Mon, 24 Jan 2022 13:41:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC4H0-0004OD-Fa for guix-patches@gnu.org; Mon, 24 Jan 2022 13:41:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC4H0-0004PO-7G for guix-patches@gnu.org; Mon, 24 Jan 2022 13:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53472] [PATCH v2] gnu: Add emacs-nim-mode References: <20220123133837.1035-1-paren@disroot.org> In-Reply-To: <20220123133837.1035-1-paren@disroot.org> Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jan 2022 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53472 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53472@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 53472-submit@debbugs.gnu.org id=B53472.164304965616923 (code B ref 53472); Mon, 24 Jan 2022 18:41:02 +0000 Received: (at 53472) by debbugs.gnu.org; 24 Jan 2022 18:40:56 +0000 Received: from localhost ([127.0.0.1]:45827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC4Gu-0004Os-2m for submit@debbugs.gnu.org; Mon, 24 Jan 2022 13:40:56 -0500 Received: from knopi.disroot.org ([178.21.23.139]:60164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC4Gs-0004Of-0m for 53472@debbugs.gnu.org; Mon, 24 Jan 2022 13:40:55 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 18C7710558; Mon, 24 Jan 2022 19:40:52 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H1p_AyzWnPff; Mon, 24 Jan 2022 19:40:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1643049648; bh=iPFaC6iD7p3T0j+TP44FHRc4u1T4xM2cqdnNV9t5n8Q=; h=From:To:Cc:Subject:Date; b=hq6yx/2z1ZM5xZ9dEOSaVuqd1zXX+mB4TYuDHsyi80GEviBIVtqKi/Cl+mNLr4OrQ wazvD4D8Rmey12Bsgxpyy6HDX2za8IdUNV0/8K+CGhHsmfSscwj8nD8YASxH8AJgOh GsQ2CcfFd/WbSrzWlIK/lumXOCgmh+INgB+6VLXGo/mCncfxczuMUAruJOaPEwcvYR xVpmBJQOZGXuR2/1y2Cxlc/EeowQPPRAm+an2Sg9YgOc2ePt/2LcTvyhb4+ed85WOH MdtgVq0HjW9vT4DbpkCazcRapZ/UmWzO/rPMKLupcb6a4Q1d4yUbrsJhiUQbS0dpe7 he3kFJvGzPQDA== Date: Mon, 24 Jan 2022 18:40:37 +0000 Message-Id: <20220124184037.21204-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" X-Patchwork-Original-From: "\(unmatched-parenthesis via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches Sorry about that! * gnu/packages/emacs-xyz.scm(emacs-nim-mode): New variable. --- gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8edbfc5a3d..34ac0d4dae 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -107,6 +107,7 @@ ;;; Copyright © 2021 Brian Kubisiak ;;; Copyright © 2021, 2022 Taiju HIGASHI ;;; Copyright © 2022 Brandon Lucas +;;; Copyright © 2022 (unmatched parenthesis ;;; ;;; This file is part of GNU Guix. ;;; @@ -29837,3 +29838,30 @@ (define-public emacs-fennel-mode "Fennel mode provides font-lock, indentation, navigation, and REPL for Fennel code within Emacs.") (license license:gpl3+))) + +(define-public emacs-nim-mode + (let ((commit "744e076f0bea1c5ddc49f92397d9aa98ffa7eff8") + (revision "0")) + (package + (name "emacs-nim-mode") + (version (git-version "0.4.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nim-lang/nim-mode") + (commit commit))) + (sha256 + (base32 "0dwas3ivhxdyw6njkcadc8c17cirq325cmby04qls8zkmrvlil1w")))) + (build-system emacs-build-system) + (home-pace "https://github.com/nim-lang/nim-mode") + (synosis "Major mode for editing Nim source code") + (description "This package provides major modes for Nim: ++@itemize ++@item Syntax highlighting for Nim code, Nimble configuration files, and nim.cfg ++@item `M-x nim-compile`, which can also be invoked with `C-c C-c` inside a Nim source file ++@item File outline by procedures ++@item Indentation and line breaking (alpha) ++@item Integration with nimsuggest, the Nim linting and completion server (alpha, both nimsuggest-mode and nimsuggest itself are currently VERY unstable and may make emacs much less responsive) ++@end itemize") + (license license:gpl3+))))