From: Catonano <catonano@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] Emacs Zenburn
Date: Sun, 15 May 2016 16:50:34 +0200 [thread overview]
Message-ID: <CAJ98PDz0WrSboVoj_SDPMSiO74q8hc-3ZQBSzkjEUM=H_qepmg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2921 bytes --]
Hello,
this is my first attempt at importing a package into Guix. My first attempt
ever.
It's trivial: the Zenburn theme for Emacs.
The linter claims that lines 44 and 45 are too long. I didn't choose myself
to make them so long. It was the automatic identation on the Emacs Scheme
mode. Did it do the wrong thing ?
It also filled my lines with tabs rather than spaces. I removed them by
hand !
Comments appreciated
Thanks
From a8e28699e4cc02e6213047de1caae00edde06ccb Mon Sep 17 00:00:00 2001
From: humanitiesNerd <catonano@gmail.com>
Date: Sun, 15 May 2016 14:55:28 +0200
Subject: [PATCH] appended the package definition for the Emacs Zenburn theme
to the gnu/packages/emacs.scm file
---
gnu/packages/emacs.scm | 48
++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 11010b2..e3eeaf4 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1559,3 +1559,51 @@ to recognize a name like \"RFC 1234\". This package
enhances ffap so
that it correctly finds RFCs even when a space appears before the
number.")
(license license:gpl3+)))
+
+(define-public emacs-zenburn-theme
+ (package
+ (name "emacs-zenburn-theme")
+ (version "2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://stable.melpa.org/packages/zenburn-theme-"
+ version
+ ".el"))
+ (sha256
+ (base32
+ "1a65hfkrrlm8ryr2x9zja0h1n8nzk4rnsyzjacqlv4k79yal1fxg"))))
+ (build-system trivial-build-system)
+ (inputs `(("emacs" ,emacs-no-x)))
+ (arguments
+ `(#:modules ((guix build utils)
+ (guix build emacs-utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (use-modules (guix build emacs-utils))
+
+ (let* ((emacs (string-append (assoc-ref %build-inputs "emacs")
+ "/bin/emacs"))
+ (source (assoc-ref %build-inputs "source"))
+ (lisp-dir (string-append %output
+ "/share/emacs/site-lisp"))
+ (target (string-append lisp-dir "/zenburn-theme.el")))
+ (mkdir-p lisp-dir)
+ (copy-file source target)
+ (with-directory-excursion lisp-dir
+ (parameterize ((%emacs emacs))
+
(emacs-generate-autoloads "zenburn-theme" lisp-dir)
+ (emacs-batch-eval
'(byte-compile-file "zenburn-theme.el"))))))))
+
+ (home-page
+ "http://github.com/bbatsov/zenburn-emacs")
+ (synopsis
+ "Low contrast color theme for Emacs")
+ (description
+ "Port of the popular Vim theme Zenburn for Emacs 24, built on top
+of the new built-in theme support in Emacs 24.
+")
+ (license license:gpl3+)))
+
--
2.5.5
[-- Attachment #2: Type: text/html, Size: 4151 bytes --]
next reply other threads:[~2016-05-15 14:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-15 14:50 Catonano [this message]
2016-05-16 14:18 ` [PATCH] Emacs Zenburn Alex Kost
2016-05-17 10:12 ` Catonano
2016-05-17 18:10 ` Alex Kost
2016-05-17 20:10 ` Catonano
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='CAJ98PDz0WrSboVoj_SDPMSiO74q8hc-3ZQBSzkjEUM=H_qepmg@mail.gmail.com' \
--to=catonano@gmail.com \
--cc=guix-devel@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).