forked from FG42/FG42
Fix the fg42/config-when macro
This commit is contained in:
parent
a163cdc33e
commit
73f574795a
|
@ -45,12 +45,9 @@
|
|||
(defmacro fg42/config-when (key value &rest body)
|
||||
"Run the BODY only if config KEY has the VALUE."
|
||||
(declare (indent defun))
|
||||
(message ">> %s %s %s" key value (string= (fg42/config-get-or key) value))
|
||||
(if (fg42/config= key value)
|
||||
(when (eval `(fg42/config= ,key ,value))
|
||||
`(progn
|
||||
,@body)
|
||||
`(progn
|
||||
(message "nooooo"))))
|
||||
,@body)))
|
||||
|
||||
|
||||
(defmacro with-config (name &rest body)
|
||||
|
|
Loading…
Reference in New Issue