Subject: [bug#40928] [PATCH 2/2 v2] gnu: Add emacs-kakoune.

From: pinoaffe <[email-masked]>
Date: Tue, 28 Apr 2020 20:06:33 +0200

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2fd16b7388..3f43202551 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -22608,3 +22608,33 @@ comments or emails.")
       (description "RYO modal provides a convenient way of defining modal keybindings in Emacs,
 and does not come with any predefined bindings.")
       (license license:expat))))
+
+(define-public emacs-kakoune
+  ;; Package has no release.  Version is extracted from "Version:" keyword in
+  ;; main file.
+  (let ((commit "d73d14e69ea38076af50cc69f846808383ff539d")
+        (revision "0"))
+    (package
+      (name "emacs-kakoune")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jmorag/kakoune.el.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0nk6jdy1y5mc3ryd0smiqghrk6iv34d5grc7f7migmshlbq0np92"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-ryo-modal"        ,emacs-ryo-modal)
+         ("emacs-multiple-cursors" ,emacs-multiple-cursors)
+         ("emacs-expand-region"    ,emacs-expand-region)))
+      (home-page "https://github.com/jmorag/kakoune.el")
+      (synopsis "Simple simulation, but not emulation, of Kakoune inside of Emacs")
+      (description "This package provides many, but not all of the editing primitives in the Kakoune editor.
+Unlike Evil mode for vim, this is very shallow emulation, which seeks to do as little
+work as possible, leveraging Emacs native editing commmands and the work of other
+packages wherever possible.")
+      (license license:expat))))
-- 
2.26.2