-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add recipes for additional packages README in private/local dir #13209
Conversation
Add detailed info for how to use additional packages as the (online) documentation for how to use single local packages is lacking
Here are some possible minor changes: diff --git a/private/local/README.md b/private/local/README.md
index 2277a43af..52463da5b 100644
--- a/private/local/README.md
+++ b/private/local/README.md
@@ -7,22 +7,23 @@ the `dotspacemacs-additional-packages` variable of your dotfile.
Additional packages can be added using the same recipe as for [adding packages to layers](https://develop.spacemacs.org/doc/LAYERS.html#packagesel) i.e.:
-- if the package is on (M)ELPA simply add the package name to the list
+- If the package is on (M)ELPA simply add the package name to the list.
-- for a local package add `(some-package :location local)` to the list and load or
- require it explicitly in the user/config section. The first part only adds the
- package directory (i.e. .emacs.d/private/local/package-dir/) to the load path
- so that the .el file should be placed inside the package directory. If the
- package provides a feature it can be loaded with require, otherwise it must be
- loaded using load.
+- For a local package, add `(some-package :location local)` to the list and load
+ or require it explicitly in the `dotspacemacs/user-config` section. The first
+ part only adds the package directory to the load path:
+ i.e. `.emacs.d/private/local/package-dir/`
+ Therefore the `.el` file should be placed inside the package directory. If the
+ package provides a feature, then it can be loaded with require. Otherwise it
+ must be loaded using `load-file`.
-- for a package hosted on github the recipe for github packages can be used i.e. add
+- For packages that are hosted on GitHub, use the recipe for GitHub packages by
+ adding the following to the `dotspacemacs-additional-packages` list: -(some-package :location (recipe
-:fetcher github
- :repo "some/repo"))
+(some-package :location (recipe :fetcher github
+ :repo "some/repo")) -to the list. This will fetch the package on every startup, this can be
-prevented by installing the package locally as described in the previous point.
+This will fetch the package on every startup, this can be prevented by
+installing the package locally as described in the previous point. Questions
Is
When I install a package using the GitHub recipe: (evil-repeat-motion :location (recipe :fetcher github
:repo yyoncho/evil-repeat-motion)) Then the package only gets installed once, it doesn't try to install it again on the next restart. |
Thanks for the review and sorry for the late reply. Except for the change from About your first question, I guess About the loading every time on startup, it seems that you are right that it is installed only once. However I remember that the org-server had some problems the day before I created this pull request, and because of that starting spacemacs took very long as the initialization was hanging on trying to reaching that server, even though I was just connecting to the emacsclients (if I remember well not sure about this... btw I mentioned the slow startup on gitter where Grant Shangreaux confirmed that he also experienced this issue). Anyway, I concluded that fetching packages form servers was not an ideal approach although fetching from github might be handled differently than the fetching of org-packages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalanicolai I have just checked your PR for merging and noticed that the changes @duianto requested have not yet been done though your second commit message suggests that way.
Please kindly check his comments and adjust your PR accordingly.
Please also squash your commits and rebase your branch on develop.
And the mention that load and require should be declared in the |
Maybe the This was written in the list item starting with
But I'm not sure what Private directory for local packagesThe content of this directory is ignored by Git. This is the place to store the local packages that you define in the Additional packages can be added using the same recipe as for adding packages to layers i.e.:
to the Then in the
|
As wished closed in favor of #13381. |
Add detailed info for how to use additional packages as the (online) documentation for how to use single local packages is lacking. See issues #13180, #8421 and #2278
Thank you for contributing to Spacemacs!
Before you submit this pull request, please ensure it is against the develop branch and not master.
Add detailed info for how to use additional packages as the (online) documentation for how to use single local packages is lacking. See issues #13180, #8421 and #2278
Thank you <3