Improve idempotency of Doom config (in case of reloading)

This commit is contained in:
Henrik Lissner 2018-05-14 20:54:57 +02:00
parent 48cb10a9cc
commit 67dab98859
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 18 additions and 17 deletions

View file

@ -1020,7 +1020,7 @@ Do not use this for configuring Doom core."
(defun ,fn ,arglist
,docstring
,@forms)
(cl-pushnew ',(cons keyword fn) doom-settings :test #'eq :key #'car))))
(map-put doom-settings ,keyword #',fn))))
(defmacro set! (keyword &rest values)
"Set an option defined by `def-setting!'. Skip if doesn't exist. See