-
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
Fixes #5170 - Set default values only if not already customized #5168
Conversation
@opie4624 thanks <3 |
I think this could stand to see a bit more polish over time. There are lots of defaults that layers override that could stand to have a better "standardized" way to set them that would still honor user's settings via Customize. Relevant discussion in chat: https://gitter.im/syl20bnr/spacemacs?at=56b391733bd55a660df5688c |
Sorry but what's the issue you want to fix ? Can you open an issue to describe the problem first ? A PR is not the right place to do this. |
I suggest something along the lines of https://gist.github.com/reactormonk/f4322f4ac1a0dec68413b1ccf44e7c7a |
I think this, or something like it, is what we need to use.
(defmacro spacemacs|setq (&rest args)
(let (result)
(while args
(let ((variable (pop args))
(form (pop args)))
(push `(or (not (get ',variable 'customized-value))
(not (get ',variable 'saved-value))
(setq ,variable ,form))
result)))
`(progn ,@(reverse result)))) |
When I was researching this for my org-mode issues, I found a comment buried on the customize page of emacswiki that stated Also |
Yes, I skipped the face stuff because you wouldn't use a |
Thank you for the PR, I pushed a commit which delays the application of custom settings, they are now applied after See commit: e699f18 |
Thank you for your pull request. In order for your pull request to be accepted please check the following.
develop
branch and notmaster
develop
and notmaster
– Changes were made while on thedevelop
branchFailure to check these will result in your pull request being rejected. You may describe your pull request below.