From 99c5f00b3699b94c114b5447e11a914684cb376e Mon Sep 17 00:00:00 2001 From: Brett Gilio Date: Fri, 7 Aug 2020 20:26:54 -0500 Subject: [PATCH] gnu: Add emacs-csound-mode. * gnu/packages/emacs-xyz.scm (emacs-csound-mode): New variable. --- gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 6e7a57d883..6848bcee10 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -24141,6 +24141,41 @@ read-only, constant database that maps Emacs Lisp symbols to arbitrary Emacs Lisp objects.") (license license:gpl3+))) +(define-public emacs-csound-mode + (package + (name "emacs-csound-mode") + (version "0.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hlolli/csound-mode") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1c88ak0jaj51fwiqniqxd7xyk23wjl9m57znzm8j267ld8g12znp")))) + (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))))) + (inputs + `(("emacs-highlight" ,emacs-highlight) + ("emacs-multi" ,emacs-multi) + ("emacs-shut-up" ,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 sonud-designing.") + (license license:gpl3+))) (define-public emacs-multi (package -- 2.20.1