From patchwork Mon Jan 24 20:12:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 36793 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 B5AD127BBEA; Mon, 24 Jan 2022 20:28:17 +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 761AF27BBE9 for ; Mon, 24 Jan 2022 20:28:17 +0000 (GMT) Received: from localhost ([::1]:40250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC5wm-0005P7-M4 for patchwork@mira.cbaines.net; Mon, 24 Jan 2022 15:28:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC5jy-000529-OW for guix-patches@gnu.org; Mon, 24 Jan 2022 15:15:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nC5jy-0002qU-EM for guix-patches@gnu.org; Mon, 24 Jan 2022 15:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nC5jy-0007TM-Ab for guix-patches@gnu.org; Mon, 24 Jan 2022 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53472] [PATCH v4] 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 20:15: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.164305525628655 (code B ref 53472); Mon, 24 Jan 2022 20:15:02 +0000 Received: (at 53472) by debbugs.gnu.org; 24 Jan 2022 20:14:16 +0000 Received: from localhost ([127.0.0.1]:45981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC5jE-0007S7-Hs for submit@debbugs.gnu.org; Mon, 24 Jan 2022 15:14:16 -0500 Received: from knopi.disroot.org ([178.21.23.139]:38068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC5jD-0007Rz-92 for 53472@debbugs.gnu.org; Mon, 24 Jan 2022 15:14:15 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 967DD53199; Mon, 24 Jan 2022 21:14:13 +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 UTF8SMTP id x1zQgsva0rdY; Mon, 24 Jan 2022 21:14:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1643055177; bh=UWtQNd/VYYmKrxpUJIvVMad5UfbYXTZ/ovj3hg+9WDo=; h=From:To:Cc:Subject:Date; b=FQ1OFPA3Ocb5NlwkJ+vQipHeZ8z5vBwWMGHdrc+aU7+jaMXgQaSA/jScXY6Ab8vXN IdRhYLIlI5Il3Vc/iXkvUOXR8KcIMcuhY6MAYaHmJrnYuIGPtGGoi6jxjhTSWlCsta tUU5b1uLclu4hNb8BONNp9XtG8BSvhhDGTPrhlFoszZVScPpkYgcHqSv4WTPigiY2j ydDZOc0d2rMjIBzXozuQD2/+hra9Vn2IEAnw0sNVLD7mdoldxJZgxSp71QGrKwNk+/ qt86dLDrDtBTALsr+uVPnYhEvH0DWgI/PhpXAfOJ/HgT59/x2/UDGTBlicWXzCfHpv dx4r35sInAhLw== Date: Mon, 24 Jan 2022 20:12:47 +0000 Message-Id: <20220124201247.30159-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 Well, that was embarrassing... the package was completely wrong and `guix package -i emacs-nim-mode` would have actually installed `emacs-fennel-mode`... Always test things, I guess. * gnu/packages/emacs-xyz.scm(emacs-nim-mode): New variable. --- gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8edbfc5a3d..78650d0c52 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,48 @@ (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-commenter + (package + (name "emacs-commenter") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/yuutayamada/commenter/archive/refs/tags/v" version ".tar.gz")) + (sha256 + (base32 "1n9m8f4gflb0c3nh98nkmsqzscyf5d1p1gcz8apskkmf7z0z0q2j")))) + (build-system emacs-build-system) + (home-page "https://github.com/yuutayamada/commenter") + (synopsis "Allows you to set both single and multi line comment variables like @code{comment-start} or @code{comment-end} etc.") + (description "This package allows you to set both single and multi line comment variables like @code{comment-start} or @code{comment-end} etc.") + (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 "0jjrjsks3q8qpipxcqdkm8pi3pjnkcxcydspbf0rkvy3x6i5mwkv")))) + (build-system emacs-build-system) + (propagated-inputs + (list emacs-commenter emacs-epc)) + (home-page "https://github.com/nim-lang/nim-mode") + (synopsis "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+))))