Refactor def-setting!/set! implementation
The `doom-settings` variable has been removed. Setting checks are done with fboundp now, which is simpler.
This commit is contained in:
parent
385cb476ba
commit
428f1e1d07
3 changed files with 25 additions and 27 deletions
|
@ -107,11 +107,10 @@
|
|||
|
||||
(def-test! set
|
||||
(eval-and-compile
|
||||
(let (doom-settings)
|
||||
(def-setting! :-test-setting (x) `(setq result ,x))
|
||||
(should (assq :-test-setting doom-settings))
|
||||
(def-setting! :-test-setting (x) `(setq result ,x))
|
||||
(should (fboundp 'doom--set:-test-setting))
|
||||
(let ((inhibit-message t)
|
||||
result)
|
||||
(set! :-test-setting t)
|
||||
(should result)
|
||||
(set! :non-existant-setting (error "This shouldn't trigger"))))))
|
||||
(set! :non-existant-setting (error "This shouldn't trigger")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue