From: Arun Isaac <arunisaac@systemreboot.net>
To: 26454@debbugs.gnu.org
Subject: bug#26454: [PATCH 2/2] gnu: Add emacs-exwm.
Date: Mon, 17 Apr 2017 18:57:43 +0530 [thread overview]
Message-ID: <1192050e.AEMAJSAD6iQAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY9MMd@mailjet.com> (raw)
In-Reply-To: <20170417132743.5683-1-arunisaac@systemreboot.net>
From: Feng Shu <tumashu@163.com>
* gnu/packages/emacs.scm (emacs-exwm): New variable.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
---
gnu/packages/emacs.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 306fb5eb7..1f8eac3df 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4422,3 +4422,72 @@ X11 protocol based on the XML description files from the XCB project. It
features an object-oriented API and permits a certain degree of concurrency.
It should enable you to implement low-level X11 applications.")
(license license:gpl3+)))
+
+(define-public emacs-exwm
+ (package
+ (name "emacs-exwm")
+ (version "0.13")
+ (synopsis "Emacs X window manager")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://elpa.gnu.org/packages/exwm-"
+ version ".tar"))
+ (sha256
+ (base32
+ "0n1wzy6chh024r0yaywjbf7mdsrxs6hrfycv5v0ps0drf6q3zldc"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-xelb" ,emacs-xelb)))
+ (inputs
+ `(("xhost" ,xhost)
+ ("dbus" ,dbus)))
+ ;; The following functions and variables needed by emacs-exwm are
+ ;; not included in emacs-minimal:
+ ;; scroll-bar-mode, fringe-mode
+ ;; x-display-pixel-width, x-display-pixel-height
+ (arguments
+ `(#:emacs ,emacs
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'install-xsession
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (xsessions (string-append out "/share/xsessions"))
+ (bin (string-append out "/bin"))
+ (exwm-executable (string-append bin "/exwm")))
+ ;; Add a .desktop file to xsessions
+ (mkdir-p xsessions)
+ (mkdir-p bin)
+ (with-output-to-file
+ (string-append xsessions "/exwm.desktop")
+ (lambda _
+ (format #t "[Desktop Entry]~@
+ Name=~a~@
+ Comment=~a~@
+ Exec=~a~@
+ TryExec=~@*~a~@
+ Type=Application~%" ,name ,synopsis exwm-executable)))
+ ;; Add a shell wrap file to bin directory
+ ;; Set DISPLAY variable to work around
+ ;; https://github.com/ch11ng/exwm/issues/213
+ (with-output-to-file exwm-executable
+ (lambda _
+ (format #t "#!~a ~@
+ export DISPLAY=:0 ~@
+ ~a +SI:localuser:$USER ~@
+ exec ~a --exit-with-session ~a --eval '~s' ~%"
+ (string-append (assoc-ref inputs "bash") "/bin/sh")
+ (string-append (assoc-ref inputs "xhost") "/bin/xhost")
+ (string-append (assoc-ref inputs "dbus") "/bin/dbus-launch")
+ (string-append (assoc-ref inputs "emacs") "/bin/emacs")
+ '(unless (featurep 'exwm)
+ (require 'exwm)
+ (require 'exwm-config)
+ (exwm-config-default)
+ (message "exwm configuration not found. Falling back to default configuration.")))))
+ (chmod exwm-executable #o555)
+ #t))))))
+ (home-page "https://github.com/ch11ng/exwm")
+ (description "EXWM (Emacs X Window Manager) is a full-featured tiling X
+window manager for Emacs built on top of XELB.")
+ (license license:gpl3+)))
--
2.12.2
next parent reply other threads:[~2017-04-17 13:30 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170417132743.5683-1-arunisaac@systemreboot.net>
2017-04-17 13:27 ` Arun Isaac [this message]
[not found] ` <c675c264.AEMAJSAD6iUAAAAAAAAAAAO1LyIAAAACwQwAAAAAAAW9WABY9MMd@mailjet.com>
2017-04-17 14:41 ` bug#26454: [PATCH 2/2] gnu: Add emacs-exwm Feng Shu
2017-04-17 17:23 ` Arun Isaac
2017-04-17 21:51 ` Feng Shu
2017-04-11 22:58 bug#26453: [PATCH 1/2] gnu: add emacs-xelb Feng Shu
2017-04-11 22:58 ` bug#26454: [PATCH 2/2] gnu: add emacs-exwm Feng Shu
2017-04-12 9:35 ` Arun Isaac
2017-04-12 18:13 ` Alex Kost
2017-04-12 20:05 ` Arun Isaac
2017-04-13 1:14 ` tumashu
2017-04-13 5:21 ` Arun Isaac
2017-04-14 11:54 ` Feng Shu
2017-04-14 13:27 ` Arun Isaac
2017-04-14 15:13 ` Feng Shu
2017-04-14 17:24 ` Arun Isaac
2017-04-15 2:37 ` tumashu
2017-04-15 12:29 ` Feng Shu
2017-04-15 21:13 ` Arun Isaac
[not found] ` <e0ed6d82.AEAAJGDHDFkAAAAAAAAAAAO1LyIAAAACwQwAAAAAAAW9WABY8o0b@mailjet.com>
2017-04-15 23:41 ` Feng Shu
2017-04-16 7:09 ` Arun Isaac
2017-04-16 8:04 ` Feng Shu, Arun Isaac
2017-04-16 20:53 ` Arun Isaac
2017-04-16 21:22 ` tumashu
2017-04-17 2:14 ` tumashu
2017-04-17 13:47 ` Arun Isaac
2017-04-18 8:20 ` Ludovic Courtès
2017-04-18 13:38 ` Arun Isaac
2017-04-18 20:39 ` Arun Isaac
2017-04-23 9:54 ` tumashu
2017-04-28 18:57 ` Arun Isaac
2017-04-14 21:47 ` Ludovic Courtès
2017-04-16 9:32 ` Ludovic Courtès
2017-04-16 11:06 ` Arun Isaac
2017-04-16 21:09 ` tumashu
2017-04-13 5:25 ` Arun Isaac
2017-04-13 21:04 ` Ludovic Courtès
2017-04-14 5:40 ` Arun Isaac
2017-04-16 9:03 ` Alex Kost
2017-04-16 9:29 ` Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192050e.AEMAJSAD6iQAAAAAAAAAAAO0QTIAAAACwQwAAAAAAAW9WABY9MMd@mailjet.com \
--to=arunisaac@systemreboot.net \
--cc=26454@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).