Subject: [bug#31500] [PATCH 13/20] gnu: Add emacs-helm-exwm.

From: Pierre Neidhardt <[email-masked]>
Date: Tue, 22 May 2018 12:41:26 +0200

* gnu/packages/emacs.scm (emacs-helm-exwm): New variable.
---
 gnu/packages/emacs.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 0bcf28046..b3593e524 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -10839,3 +10839,40 @@ searched for and execute it, or view it's documentation.")
     (description "Helm interface for Emms to browse all tracks and all folders
 from @code{emms-source-file-default-directory}.")
     (license license:gpl3+)))
+
+(define-public emacs-helm-exwm
+  (package
+    (name "emacs-helm-exwm")
+    (version "20180301.958")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://melpa.org/packages/helm-exwm-"
+             version
+             ".el"))
+       (sha256
+        (base32
+         "00hm42mkjradg45j6q4w8kzbjg1kylka39vazs1b9wjm82ppnsdh"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-helm" ,emacs-helm)
+       ("emacs-exwm" ,emacs-exwm)))
+    (home-page
+     "https://github.com/emacs-helm/helm-exwm")
+    (synopsis "Helm for EXWM buffers")
+    (description
+     "@code{helm-exwm} runs a Helm session over the list of EXWM buffers.
+To separate EXWM buffers from Emacs buffers in @code{helm-mini}, set up the sources as follows:
+@code{
+  (setq helm-exwm-emacs-buffers-source (helm-exwm-build-emacs-buffers-source))
+  (setq helm-exwm-source (helm-exwm-build-source))
+  (setq helm-mini-default-sources `(helm-exwm-emacs-buffers-source
+                                    helm-exwm-source
+                                    helm-source-recentf)
+}
+@code{helm-exwm-switch} is a convenience X application launcher using Helm to
+switch between the various windows of one or several specific applications.
+See @code{helm-exwm-switch-browser} for an example.
+")
+    (license license:gpl3+)))
-- 
2.17.0