From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WMLmFwANSGRtDAEASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 19:25:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2GXxFgANSGQINwAAG6o9tA (envelope-from ) for ; Tue, 25 Apr 2023 19:25:20 +0200 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 DE5DA25618 for ; Tue, 25 Apr 2023 19:25:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prMPZ-0005uY-9p; Tue, 25 Apr 2023 13:25:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prMPW-0005uD-Ki for guix-patches@gnu.org; Tue, 25 Apr 2023 13:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prMPW-0002HB-BC for guix-patches@gnu.org; Tue, 25 Apr 2023 13:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prMPW-0005Pa-4s for guix-patches@gnu.org; Tue, 25 Apr 2023 13:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63071] [PATCH] gnu: Add emacs-riscv-mode Resent-From: Gabriel Wicki Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Apr 2023 17:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63071 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63071@debbugs.gnu.org Cc: liliana.prikler@gmail.com, andrew@trop.in X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168244344320721 (code B ref -1); Tue, 25 Apr 2023 17:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Apr 2023 17:24:03 +0000 Received: from localhost ([127.0.0.1]:53498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prMOZ-0005O7-70 for submit@debbugs.gnu.org; Tue, 25 Apr 2023 13:24:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:43556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prMOX-0005Np-Oh for submit@debbugs.gnu.org; Tue, 25 Apr 2023 13:24:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prMOX-00055N-IE for guix-patches@gnu.org; Tue, 25 Apr 2023 13:24:01 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prMOV-00021P-Ep for guix-patches@gnu.org; Tue, 25 Apr 2023 13:24:01 -0400 Received: from localhost (antispam.ee.ethz.ch [129.132.2.16]) by chimborazo.ee.ethz.ch (Postfix) with ESMTP id 08139401A2; Tue, 25 Apr 2023 19:23:23 +0200 (CEST) X-Virus-Scanned: by amavisd at antispam.ee.ethz.ch Received: from chimborazo.ee.ethz.ch ([129.132.2.15]) by localhost (antispam.ee.ethz.ch [129.132.2.16]) (amavisd-new, port 10026) with ESMTP id buMLmFxa_ZDt; Tue, 25 Apr 2023 19:23:18 +0200 (CEST) Received: from blackbox (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by chimborazo.ee.ethz.ch (Postfix) with ESMTPSA; Tue, 25 Apr 2023 19:23:18 +0200 (CEST) From: Gabriel Wicki Date: Tue, 25 Apr 2023 19:23:15 +0200 Message-ID: <875y9jj2po.fsf@erlikon.ch> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=129.132.2.15; envelope-from=gabriel@erlikon.ch; helo=chimborazo.ee.ethz.ch 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682443520; a=rsa-sha256; cv=none; b=JzFUF7oI4WKwJldmVNnHIhE/tTqvmfiK/HW5YvJatG3b8PSnnGcXNJfMAjiKAAzT9ROrOX EQOew4T2C7Siqw6a9R42gZg33EhpUehi6hKRniepj6LhgEjwZBeM9cq6QsmyWXhv/NLCWU x8REjEzd3GdeWgjbNYrRtT643GoDlJnozPTNbuZBnGHl+fTsxhxCoadLd/QxLkSHwV6DfY lnvd1q7EsCBVgHfiyHAk1Ix9/wF+1bRBFwZWODjdD2PjLP/MCaNLF10N8rVn96lSopAGD7 HoNwGPBIlSCCNoxq0pSg7vzlzqjqZBS8x4l/tVDVhk5SbumxVLJWwq9RKTZCWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682443520; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=grl7h5lOIGQsq4DqyvcF1nv5GgbHQZS3jrvdkMNo6PU=; b=nJCzHRQ/Mem29MORUZo0npepAL7M+F2B4y7HjqL6eMUXKEJutKvDXIBoA8tydm5c+Mf7Bs 99Meepln9LxnuYp7HVOaLuS1jXXEd6fsXcBibtvYAk31sGYgQO8T2DMSg4yV4Chj7870Sy Fgs+guA9WifnTpJBOKYZ7/3IYq87lNkjiDkG9CydhDx1g9SWlrta0OtTCNhxZkZ6tWCGyP WhdRmkZ8kU80wCRQu7Wy3nzzhoxx7wALE9wAqG6WReSQw1hxFKssRo9LES4N3YfjybE7vE FxANgJoqSaOfVEYSUKTl0nFkwjY3SuS7P5/SwHv2NRNw5kKhfUlTzgrctAz8hA== X-Migadu-Spam-Score: -4.41 X-Spam-Score: -4.41 X-Migadu-Queue-Id: DE5DA25618 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: e2ahdAzokes6 Hello! I hope this email finds you in a state of well-being! I've come around to package this small little emacs-package which is supposed to aid RISC-V assembly development. Please let me know if I can fix/improve/adjust anything with the patch. It is based on commit 8c5ba69d6e9e4b1b9d6b5e9cd28859b19e8e180c Best wishes, gabber >From 3046e712491fa0bdc21c4d7aef62eedc134df783 Mon Sep 17 00:00:00 2001 Message-Id: <3046e712491fa0bdc21c4d7aef62eedc134df783.1682443077.git.gabriel@erlikon.ch> From: Gabriel Wicki Date: Tue, 25 Apr 2023 17:48:41 +0200 Subject: [PATCH] gnu: Add emacs-riscv-mode. * gnu/packages/emacs-xyz.scm (emacs-riscv-mode): New variable. --- gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 7c8af093fc..7b10bed7df 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -35854,6 +35854,32 @@ (define-public emacs-nasm-mode Unlike Emacs' generic ASM mode, it understands NASM-specific syntax.") (license license:unlicense))) +(define-public emacs-riscv-mode + (let ((url "https://github.com/AdamNiederer/riscv-mode") + (commit "8e335b9c93de93ed8dd063d702b0f5ad48eef6d7") + (revision "1") + (version "0")) + (package + (name "emacs-riscv-mode") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url url) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06jlf84mx49scw3zm1wjj25zinr2yr9abiyh83rli78wb1hdc0l4")))) + (build-system emacs-build-system) + (home-page url) + (synopsis "RISC-V assembly major mode") + (description + "RISC-V mode is a major mode for editing RISC-V assembly programs. +It includes syntax highlighting, syntactic indentation and code evaluation +with spike.") + (license license:gpl3)))) + (define-public emacs-validate-html ;; XXX: Upstream did not tag commits yet. However, commit below matches the ;; last version bump. Version is extracted from the keyword in main file. -- 2.39.2