-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding (package-initialize) #102
Comments
Hi Vasilij, I'll look into how to add that to Gelpa. Best, 2015-05-03 7:58 GMT+01:00 Vasilij Schneidermann [email protected]:
|
I quite disagree with adding information about package-initialize. It's only people perpetuating the advice that makes it necessary. [email protected] writes:
|
@nicferrier Well, how about at least noting the alternative (using Also, note that @Malabarba's solution consists of inserting |
FWIW, Gelpa now says
What advice are you referring to? Adding configuration snippets to your init file? Do we have a viable alternative? |
@Malabarba The viable alternative to adding I'm not terribly happy with the new advice at GNU ELPA since it's neither precise (add it where and for what purpose exactly?) nor links to the respective manual section. |
I don't see why adding all your package configurations (which might be almost your entire init file) to a hook is any cleaner than calling
I'll try to add the link as well.
Frontpage advice should be short and to the point. In any case, linking to the manual will help answer the purpose. |
It is only the entry points of packages you'll want to have enabled, for my config that makes 23 lines of code vs. the remaining over 2000 lines of code (which use `with-eval-after-load' and hooks heavily). As for the custom set forms, I've only needed to analyze two or three of them. Other users might instead use customize directly if it's a few of them. |
That still doesn't make it any better/cleaner than |
I have participated in the discussion. I strongly resisted @Malabarba's suggestion. It's a pointless change to semantics. Adding a standard after package init file (.emacs.d/init-post.el, say) is my suggestion. Nobody wanted that though. |
Well, one of the two "finalist" options in that discussion was kind of that but the other way around. It would add a pre-package-init file, and then the usual init.el becomes your after package init file. |
Yeah. Great. Thus breaking everyone who did it properly but not everyone who couldn't be bothered. |
While I don't know exactly how many people's config will break, I wonder what makes you say everyone. |
Could you please let the offtopic alone and concentrate on the original issue? @nicferrier Do you agree going for either option as enhancement to the current installation instructions? |
See also emacs-devel and my proposed solution. @Malabarba suggested changes done to package.el to solve the problem of newbies tripping up over needing
(package-initialize)
in their Emacs configuration to which the solution of automatically inserting such a line came up. While the remaining thread devolved into discussion of technical merits of this and other solutions, I did wonder whether the original problem didn't just happen because at least one popular package archive didn't mention this complication at all.And indeed, MELPA does mention
(package-initialize)
, but Marmalade doesn't (same for GNU ELPA). I therefore propose adding such a hint at the end of its installation instructions (something along the lines of "If you wish to customize Marmalade packages in your init file (.emacs or init.el), you'll most certainly want to insert(package-initialize)
before these to instruct Emacs to load the exposed configuration points. Alternatively, write a function doing the customization and add it toafter-init-hook
with(add-hook 'my-customization-setup 'after-init-hook)
.") and see what effect it has.The text was updated successfully, but these errors were encountered: