ardumont / install-packages-pack

emacs-live pack to help in installing emacs packages
7 stars 3 forks source link

Cannot load with emacs-live-packs after removal of info.el #1

Open neverfox opened 9 years ago

neverfox commented 9 years ago

After the commit that removed info.el, I can no longer load this through emacs-live:

==> Loading Emacs Live Pack: ~/.emacs-live-packs/install-packages-pack/
Error - could not find info.el file for pack with location: ~/.emacs-live-packs/install-packages-pack/
Error - no pack name found for pack. Please add to pack's info.el
Error - no pack version found for pack. Please add to packs's info.el
Error - no pack description found for pack. Please add to pack's info.el
ardumont commented 9 years ago

Hello,

After the commit that removed info.el, I can no longer load this through emacs-live:

==> Loading Emacs Live Pack: ~/.emacs-live-packs/install-packages-pack/
Error - could not find info.el file for pack with location: ~/.emacs-live-packs/install-packages-pack/
Error - no pack name found for pack. Please add to pack's info.el
Error - no pack version found for pack. Please add to packs's info.el
Error - no pack description found for pack. Please add to pack's info.el

It's more an ardumont/emacs-live-packs issue.

I no longer use it. I use ardumont/prelude-packs and the loading is different.

And at some point, my live-packs stopped following the emacs-live conventions (removing the info.el for one).

Still, I might be able to fix this, providing you will update the ardumont/emacs-live-packs repository.

Cheers,

ardumont commented 9 years ago

Ok, this should be ok now.

Update emacs-live-packs repository and submodules (it is now able to load live-packs and other packs with names like pack-name/pack-name.el as per my simple conventions).

And restart emacs-live.

Cheers,

neverfox commented 9 years ago

Got it. Thanks. So what led you to switch to Prelude? I'm using Emacs mostly for Clojure and started right away with emacs-live. It still feels the most solid in that domain but I also don't like that it seems hard to extend beyond what's included without issues (e.g. using package.el).

ardumont commented 9 years ago

Got it. Thanks.

Great!

So what led you to switch to Prelude?

A trial. And it stuck without me noticing.

Even though I had some work to agnostify my lisp packs from emacs-live (just a matter of loading elisp files). It was quite an interesting experience :D

I'm using Emacs mostly for Clojure and started right away with emacs-live. It still feels the most solid in that domain but I also don't like that it seems hard to extend beyond what's included without issues (e.g. using package.el).

I use emacs for almost anything now, not only clojure (at first it was). Except for browsing, still using firefox.

(btw, I think prelude must be quite good for clojure too since @bbatsov, prelude's author, is one of the actual maintainers of cider.)

Also, for the limitation you mention, prelude uses package.el so no worries about that.

Cheers,

tony / @ardumont

On Wed, May 20, 2015 at 5:40 PM, Roman Pearah notifications@github.com wrote:

Got it. Thanks. So what led you to switch to Prelude? I'm using Emacs mostly for Clojure and started right away with emacs-live. It still feels the most solid in that domain but I also don't like that it seems hard to extend beyond what's included without issues (e.g. using package.el).

— Reply to this email directly or view it on GitHub https://github.com/ardumont/install-packages-pack/issues/1#issuecomment-103931358 .

bbatsov commented 9 years ago

(btw, I think prelude must be quite good for clojure too since @bbatsov, prelude's author, is one of the actual maintainers of cider.)

And pretty much every Clojure-related Emacs package that exists. :-)

neverfox commented 9 years ago

What I get now is (fresh emacs-live and emacs-live-packs):

Warning (initialization): An error occurred while loading `/Users/neverfox/.emacs.d/init.el':

error: package.el is not yet initialized!
ardumont commented 9 years ago

ok.

Add this to your .emacs-live.el before the actual loading of emacs-live-packs's function call.

(require 'package)
(package-initialize)

...

(emacs-live-packs/add-live-packs "~/.emacs-live-packs/"
                                 '("install-packages-pack"
...
                                   "pres-pack"))

As emacs-live does not use package.el, this could happen. And prelude does use it.

(I did not see it when testing because the dash and names package are already installed on my side. Sorry about that.)

Cheers,

tony / @ardumont

On Wed, May 20, 2015 at 11:16 PM, Roman Pearah notifications@github.com wrote:

What I get now is (fresh emacs-live and emacs-live-packs):

Warning (initialization): An error occurred while loading `/Users/neverfox/.emacs.d/init.el':

error: package.el is not yet initialized!

— Reply to this email directly or view it on GitHub https://github.com/ardumont/install-packages-pack/issues/1#issuecomment-104041477 .