Subject: [PATCH] gnu: Add emacs-mini-frame.
From: Pierre-Henry Fröhring <[email-masked]>
To: [email-masked]
Cc: Pierre-Henry Fröhring <[email-masked]>
Date: Sun, 7 Aug 2022 14:53:12 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/emacs-xyz.scm (emacs-mini-frame): 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 3c1d322db3..1fc4442e90 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31967,3 +31967,26 @@ (define-public emacs-vundo
 tree to go back to previous buffer states.  To use vundo, type @kbd{M-x vundo RET} in
 the buffer you want to undo.  An undo tree buffer should pop up.")
     (license license:gpl3+)))
+
+(define-public emacs-mini-frame
+  (package
+    (name "emacs-mini-frame")
+    (version "20220627.2041")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://melpa.org/packages/mini-frame-"
+                                  version ".el"))
+              (sha256
+               (base32
+                "0xn5glw1159l7qg216yvi56clax9lbx4prrv28y1pkxyrqqwwl8d"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/muffinmad/emacs-mini-frame")
+    (synopsis "Show minibuffer in child frame")
+    (description
+     "Place minibuffer at the top of the current frame on read-from-minibuffer.
+
+@dfn{mini-frame-mode} makes an advice around read-from-minibuffer function to
+create and show minibuffer-only child frame to accept input. @code{find-file}
+and similar functions associated mini-buffers may appear at the center of the
+screen and not at the bottom.")
+    (license license:gpl3+)))
-- 
2.37.1