Subject: [bug#44479] [PATCH] gnu: Add emacs-csharp-mode

From: [email-masked]
Date: Sat, 07 Nov 2020 10:50:53 +0000

Sorry, i updated the patch like you asked.
Thanks for the tips!

Grassi Marco

From c7391fde3e5b86b758810b4132eb6c54fe3db588 Mon Sep 17 00:00:00 2001
From: AuPath <[email-masked]>
Date: Sat, 7 Nov 2020 11:46:39 +0100
Subject: [PATCH] gnu: Add emacs-csharp-mode.

* gnu/packages/emacs-xyz.scm (emacs-csharp-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a145f6a378..deab69e6d8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -11343,6 +11343,29 @@ constructs.")
 configuration of Chinese fonts.")
     (license license:gpl2+)))
 
+(define-public emacs-csharp-mode
+  (package
+    (name "emacs-csharp-mode")
+    (version "0.10.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/josteink/csharp-mode")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0vwkbla2gkfa9dzxfvrvr7hd2z16769iwbycl7k6l701dnwli1fw"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/josteink/csharp-mode")
+    (synopsis "Major mode for C# code")
+    (description "This is a C# editing mode for Emacs, based on CC mode.  It
+handles syntax coloring, indentation, insertion of matched pairs of curly
+braces and documentation generation.  In addition, it provides menu-based
+navigation using Imenu, and Compilation mode support for MSBuild, devenv and
+xbuild.")
+    (license license:gpl2+)))
+
 (define-public emacs-php-mode
   (package
     (name "emacs-php-mode")
-- 
2.29.2