guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: gnu: emacs-csound-mode: Improve package style.


From: guix-commits
Subject: 03/04: gnu: emacs-csound-mode: Improve package style.
Date: Tue, 25 Oct 2022 06:04:47 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 2f6cc86f4024224d8e976c41fc3bc18530a10b63
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Oct 25 11:51:10 2022 +0200

    gnu: emacs-csound-mode: Improve package style.
    
    * gnu/packages/emacs-xyz.scm (emacs-csound-mode)[arguments]: Use
    G-expressions.
    <phases>: Use MAKE-FILE-WRITABLE instead of CHMOD. Remove trailing #T.
    [description]: Use complete sentences.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d1de222c2c..07b64e7137 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31991,22 +31991,21 @@ arbitrary Emacs Lisp objects.")
            "0kfhca1n0iv1400jf4ggjbarg7ry8ccd5bs7cf2brjdiqp74cvwb"))))
       (build-system emacs-build-system)
       (arguments
-       `(#:phases
-         (modify-phases %standard-phases
-           (add-after 'unpack 'disable-breaking-compilation
-             (lambda _
-               (for-each (lambda (file)
-                           (chmod file #o600) ; needed to write changes.
-                           (emacs-batch-disable-compilation file))
-                         '("csound-font-lock.el"))
-               #t)))))
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'disable-breaking-compilation
+              (lambda _
+                (let ((file "csound-font-lock.el"))
+                  (make-file-writable file)
+                  (emacs-batch-disable-compilation file)))))))
       (propagated-inputs
        (list emacs-dash emacs-highlight emacs-multi emacs-shut-up))
       (home-page "https://github.com/hlolli/csound-mode";)
       (synopsis "Emacs major mode for coding in CSound")
-      (description "Provides both a basic major mode for editing
-CSound files, as well as a REPL for fast feedback when composing
-and sound-designing.")
+      (description "This package provides both a basic major mode for editing
+CSound files, as well as a REPL for fast feedback when composing and
+sound-designing using CSound.")
       (license license:gpl3+))))
 
 (define-public emacs-multi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]