From: Pjotr Prins <pjotr.public12@thebird.nl>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>, Federico Beffa <beffa@ieee.org>
Subject: Re: emacs packages
Date: Tue, 16 Jun 2015 18:21:10 +0200 [thread overview]
Message-ID: <20150616162110.GA26836@thebird.nl> (raw)
In-Reply-To: <878ubjskwj.fsf@gnu.org>
Awesome developments!
On Tue, Jun 16, 2015 at 06:00:44PM +0200, Ludovic Courtès wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>
> > To be concrete about what I'm proposing, attached you find:
> >
> > - An ELPA package importer
> > - An 'emacs-build-system'
>
> Sounds very useful to me!
>
> > There are a lot of Emacs packages. For this reason I would like to
> > propose to prefix them with 'emacs-' as we do with Python, ...
>
> Sounds good. I think I prefer ‘emacs-’ to ‘el-’ because that’s probably
> what people expect.
>
> > To make those packages automatically available in Emacs without the
> > need for any code in the user '.emacs' file, I would suggest to
> > include in our Emacs package site initialization file some custom code
> > (to activate our ELPA emacs packages) such as the one in the attached
> > 'guix-elpa.el' file.
>
> guix.el already takes care of that (info "(guix) Emacs Initial Setup"),
> so that should be enough.
>
> Some random comments:
>
> > ;; Path relative to 'out' where we install ELPA packages. We avoid the
> > ;; ".../elpa" path as Emacs expects to find the ELPA repository
> > ;; 'archive-contents' file and the archive signature.
> > (define guix-elpa-packages-path "/share/emacs/site-lisp/guix.d")
>
> Rather %install-suffix (“path” is used exclusively to refer to search
> paths in GNU.)
>
> > (define* (build #:key outputs inputs #:allow-other-keys)
> > "Compile .el files."
> > (let* ((emacs (string-append (assoc-ref inputs "emacs") "/bin/emacs"))
> > (out (assoc-ref outputs "out"))
> > (name-ver (store-dir->elpa-name-version out))
> > (el-dir (string-append out guix-elpa-packages-path "/" name-ver)))
>
> Please align the lets. :-)
>
> > (fold (lambda (f s)
> > (and s (zero? (system* emacs "--batch" "-Q" "-L" el-dir
> > "-f" "batch-byte-compile" f))))
> > #t (find-files "." "\\.el$")))))
>
> Should probably use ‘emacs-batch-eval’ from (guix build emacs-utils),
> and perhaps define ‘emacs-byte-compile’ there.
>
> > (define* (copy #:key outputs #:allow-other-keys)
> > "Copy the package content to the installation directory."
>
> s/copy/install/ ?
>
> > ;; from (guix utils). Should we put it in (guix build utils)?
> > (define (package-name->name+version name)
> > "Given NAME, a package name like \"foo-0.9.1b\", return two values:
>
> Yes, should probably be moved to (guix build utils) eventually.
>
> Thanks for the great initiative!
>
> Ludo’.
>
--
next prev parent reply other threads:[~2015-06-16 16:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 10:20 emacs packages Federico Beffa
2015-06-15 10:45 ` Mathieu Lirzin
2015-06-16 16:00 ` Ludovic Courtès
2015-06-16 16:21 ` Pjotr Prins [this message]
2015-06-17 7:42 ` Federico Beffa
2015-06-17 18:21 ` Alex Kost
2015-06-18 18:32 ` Federico Beffa
2015-06-19 9:56 ` Alex Kost
2015-06-19 12:13 ` Ludovic Courtès
2015-06-19 16:06 ` Federico Beffa
2015-06-21 21:12 ` Ludovic Courtès
2015-06-22 7:30 ` Federico Beffa
2015-06-22 19:43 ` Ludovic Courtès
2015-06-23 6:48 ` Federico Beffa
2015-06-23 12:47 ` Ludovic Courtès
2015-06-16 16:24 ` Mark H Weaver
2015-06-16 19:31 ` Federico Beffa
2015-06-17 18:42 ` Mark H Weaver
2015-06-17 20:00 ` Alex Kost
2015-06-18 18:24 ` Federico Beffa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150616162110.GA26836@thebird.nl \
--to=pjotr.public12@thebird.nl \
--cc=beffa@ieee.org \
--cc=guix-devel@gnu.org \
--cc=ludo@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.