[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/67: gnu: emacs-exwm: Improve package style.
From: |
guix-commits |
Subject: |
28/67: gnu: emacs-exwm: Improve package style. |
Date: |
Tue, 18 Jun 2024 18:08:37 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit fff1cc2886b1ea3213b7d1e10d83061e4c321890
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Jun 18 22:26:28 2024 +0200
gnu: emacs-exwm: Improve package style.
* gnu/packages/emacs-xyz.scm (emacs-exwm)[arguments]: Use G-expressions.
Remove trailing #T from phases.
Change-Id: I30f95c19463e54c484f7ad4e473a934af71ff373
---
gnu/packages/emacs-xyz.scm | 73 +++++++++++++++++++++++-----------------------
1 file changed, 36 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 13035bcf4f..81df088ca8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -19788,45 +19788,44 @@ It should enable you to implement low-level X11
applications.")
;; 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)
- (make-desktop-entry-file
- (string-append xsessions "/exwm.desktop")
- #:name ,name
- #:comment ,synopsis
- #:exec exwm-executable
- #:try-exec exwm-executable)
- ;; Add a shell wrapper to bin
- (with-output-to-file exwm-executable
- (lambda _
- (format #t "#!~a ~@
+ (list
+ #:emacs emacs
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'build 'install-xsession
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((xsessions (string-append #$output "/share/xsessions"))
+ (bin (string-append #$output "/bin"))
+ (exwm-executable (string-append bin "/exwm")))
+ ;; Add a .desktop file to xsessions
+ (mkdir-p xsessions)
+ (mkdir-p bin)
+ (make-desktop-entry-file
+ (string-append xsessions "/exwm.desktop")
+ #:name #$name
+ #:comment #$synopsis
+ #:exec exwm-executable
+ #:try-exec exwm-executable)
+ ;; Add a shell wrapper to bin
+ (with-output-to-file exwm-executable
+ (lambda _
+ (format #t "#!~a ~@
~a +SI:localuser:$USER ~@
exec ~a --exit-with-session ~a \"$@\" --eval '~s' ~%"
- (search-input-file inputs "/bin/sh")
- (search-input-file inputs "/bin/xhost")
- (search-input-file inputs "/bin/dbus-launch")
- (search-input-file inputs "/bin/emacs")
- '(cond
- ((file-exists-p "~/.exwm")
- (load-file "~/.exwm"))
- ((not (featurep 'exwm))
- (require 'exwm)
- (require 'exwm-config)
- (exwm-config-default)
- (message (concat "exwm configuration not found. "
- "Falling back to default
configuration...")))))))
- (chmod exwm-executable #o555)
- #t))))))
+ (search-input-file inputs "/bin/sh")
+ (search-input-file inputs "/bin/xhost")
+ (search-input-file inputs "/bin/dbus-launch")
+ (search-input-file inputs "/bin/emacs")
+ '(cond
+ ((file-exists-p "~/.exwm")
+ (load-file "~/.exwm"))
+ ((not (featurep 'exwm))
+ (require 'exwm)
+ (require 'exwm-config)
+ (exwm-config-default)
+ (message (concat "exwm configuration not found.
"
+ "Falling back to default
configuration...")))))))
+ (chmod exwm-executable #o555)))))))
(home-page "https://github.com/ch11ng/exwm")
(description
"EXWM is a full-featured tiling X window manager for Emacs built on top
- 23/67: gnu: emacs-auctex: Update to 14.0.5., (continued)
- 23/67: gnu: emacs-auctex: Update to 14.0.5., guix-commits, 2024/06/18
- 24/67: gnu: emacs-pyim: Update to 5.3.4., guix-commits, 2024/06/18
- 15/67: gnu: emacs-org-transclusion: Update to 1.4.0., guix-commits, 2024/06/18
- 26/67: gnu: emacs-xelb: Improve package style., guix-commits, 2024/06/18
- 30/67: gnu: emacs-notmuch-indicator: Update to 1.2.0., guix-commits, 2024/06/18
- 20/67: gnu: emacs-pg: Update to 0.35., guix-commits, 2024/06/18
- 25/67: gnu: emacs-xelb: Update to 0.19., guix-commits, 2024/06/18
- 33/67: gnu: emacs-circadian: Update to 1.0.0., guix-commits, 2024/06/18
- 34/67: gnu: emacs-eldev: Update to 1.10.1.1., guix-commits, 2024/06/18
- 38/67: gnu: emacs-citre: Update to 0.4.1., guix-commits, 2024/06/18
- 28/67: gnu: emacs-exwm: Improve package style.,
guix-commits <=
- 39/67: gnu: emacs-org-modern: Update to 1.3., guix-commits, 2024/06/18
- 44/67: gnu: Add emacs-dape., guix-commits, 2024/06/18
- 46/67: gnu: emacs-yeetube: Update to 2.1.6, guix-commits, 2024/06/18
- 27/67: gnu: emacs-exwm: Update to 0.30., guix-commits, 2024/06/18
- 31/67: gnu: emacs-persist: Update to 0.6.1., guix-commits, 2024/06/18
- 43/67: gnu: Add emacs-context-transient., guix-commits, 2024/06/18
- 45/67: gnu: Add emacs-devil., guix-commits, 2024/06/18
- 47/67: gnu: emacs-org: Update to 9.7.4., guix-commits, 2024/06/18
- 32/67: gnu: emacs-xref: Update to 1.7.0., guix-commits, 2024/06/18
- 41/67: gnu: emacs-jsonrpc: Update to 1.0.25., guix-commits, 2024/06/18