[bug#35327] Add emacs packages.

Message ID CAAc=MEzd4oWu0bQcJwKjGRC5_Or7pU2oVKjoqNFu9U3fQgOutA@mail.gmail.com
State Accepted
Headers show
Series [bug#35327] Add emacs packages. | expand

Checks

Context Check Description
cbaines/applying patch fail Apply failed

Commit Message

Brian Leung April 19, 2019, 7:02 p.m. UTC
See attached.

Comments

Ludovic Courtès May 6, 2019, 9:18 a.m. UTC | #1
Hello Brian,

I applied the 7 patches, thank you!

Ludo’.

Patch

From aff2354e64b45f3c1453ff2db2fd6576038ea0bb Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Fri, 19 Apr 2019 20:59:59 +0200
Subject: [PATCH 6/7] gnu: Add emacs-sudo-edit.

* gnu/packages/emacs-xyz.scm (emacs-sudo-edit): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d43b853e4a..05e9f0d414 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2823,6 +2823,31 @@  respective @code{*Help*} buffers.")
 completion of relevant keywords.")
     (license license:expat)))
 
+(define-public emacs-sudo-edit
+  (let ((commit "cc3d478937b1accd38742bfceba92af02ee9357d")
+        (version "0.1.0")
+        (revision "6"))
+    (package
+      (name "emacs-sudo-edit")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/nflath/sudo-edit")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1qv58x5j5a3v1s2ylhck1ykbfclq0mbi0gsvaql3nyv8cxazqlwl"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/nflath/sudo-edit/")
+      (synopsis "Open files as another user")
+      (description
+       "This package allows editing files as another user, including the root
+user.")
+      (license license:gpl3+))))
+
 (define-public emacs-ob-ipython
   (package
     (name "emacs-ob-ipython")
-- 
2.21.0