-
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
Proposal to add :use keyword to layer declaration #5190
Comments
I suggest keyword "only" instead of "use". |
I agree |
|
@sooheon I very much agree on the |
If I could add to this, I like the idea of having the ability to include or exclude packages but not the separate keywords because then you need to specify rules about what happens when both are used. If the choice were mine, I think I'd do something like this (spacemacs-ui :packages (info+ window-numbering))
(spacemacs-ui-visual :packages (not neotree)) |
👍 to @justbur's proposal. |
If I want spacemacs-ui, but just without
The rules for both being used should not be complicated, and it should be no different than if someone has defined The benefit is that we gain atomicity for layer declarations, as said before. I don't need to include a whole layer, then exclude bits of it globally, which is brittle. |
@sooheon you missed that I had a |
@justbur I did! That was much more elegant than what I had thought. Scratch my proposal above, yours is much improved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
In the spirit of being explicit about what you would like to use, rather than excluding what you don't want, a
:use
keyword for thedotspacemacs-configuration-layers
list would be useful.Specifically for adding on to
spacemacs-base
, currently the layers likespacemacs-ui
spacemacs-evil
etc. still come whole hog, and you end up adding most ofspacemacs
default back if you want something in the layers. This would allow you to be more selective, more easily.The text was updated successfully, but these errors were encountered: