From: Alex Kost <alezost@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: guix.el vs. Emacs packages
Date: Thu, 28 Aug 2014 15:21:01 +0400 [thread overview]
Message-ID: <8761hcn9lu.fsf@gmail.com> (raw)
In-Reply-To: <87fvgipa85.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 27 Aug 2014 11:12:26 +0200")
[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]
Hello,
Ludovic Courtès (2014-08-27 13:12 +0400) wrote:
> Hi!
>
> It would be really cool if, once a package with a share/emacs/site-lisp
> sub-directory has been installed, guix.el would offer to load it, just
> like package.el does. (That would pretty much make guix.el a drop-in
> replacement, I think.)
Good idea!
If by “offer to load” you mean to load/require the whole package, this
is not what “package.el” does. (I think you know the following but just
to clarify things): during installing a package, “package.el” generates
"...-autoloads.el" (it usually contains the main interactive commands)
and loads it. And on emacs startup "...-autoloads.el" files for each
package are loaded, so that "M-x ..." for installed packages become
available.
So for the real “drop-in replacement”, the following should be done
(IMHO): Guix recipes for emacs packages should be modified to
additionally generate "...-autoloads.el" (like it is done by
“package.el”: for example using ‘update-directory-autoloads’ function if
a package has appropriate "autoload cookies").
And after an Emacs package is installed with “guix.el”, its
"...-autoloads.el" file may be loaded just like it is done by
“package.el”.
Moreover if each installed emacs package will have "...-autoloads.el",
these files may be loaded on emacs startup simply like this:
[-- Attachment #2: Type: application/emacs-lisp, Size: 121 bytes --]
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
So there would be no need to put “(autoload 'foo "foo-mode" ...)” in
your ".emacs" for all those commands you want to use.
--
Alex
next prev parent reply other threads:[~2014-08-28 11:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 9:12 guix.el vs. Emacs packages Ludovic Courtès
2014-08-28 11:21 ` Alex Kost [this message]
2014-08-28 11:51 ` Ludovic Courtès
2014-08-28 14:12 ` Alex Kost
2014-08-28 19:56 ` Ludovic Courtès
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=8761hcn9lu.fsf@gmail.com \
--to=alezost@gmail.com \
--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.