Subject: [PATCH] gnu: Add emacs-buffer-move

From: Fredrik Salomonsson <[email-masked]>
Date: Fri, 29 May 2020 18:35:55 -0700

---
 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 4f7b4cf6cc..268780ce3d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -73,6 +73,7 @@
 ;;; Copyright © 2020 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2020 Ryan Desfosses <[email-masked]>
 ;;; Copyright © 2020 Marcin Karpezo <[email-masked]>
+;;; Copyright © 2020 Fredrik Salomonsson <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -23110,3 +23111,28 @@ files.")
 sources.  It features syntax highlighting, autocompletion, preview of buffer
 or region and use of locally installed binaries.")
     (license license:gpl3+)))
+
+(define-public emacs-buffer-move
+  (package
+    (name "emacs-buffer-move")
+    (version "0.6.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://stable.melpa.org/packages/buffer-move-"
+               version
+               ".el"))
+        (sha256
+          (base32
+            "0d977g88ca3k1v5psikgrg4sb9q0jiw21g633r8a06dvn4n0ca3h"))))
+    (build-system emacs-build-system)
+    (home-page
+      "https://github.com/lukhas/buffer-move")
+    (synopsis "Functions for moving emacs' buffers around")
+    (description
+      "This package define functions for swapping buffers between windows
+contained in the same frame.  An alternate behavior is to have the current
+window switch to the previous buffer instead of swapping with the other
+window.")
+    (license license:gpl3+)))
-- 
2.26.2