mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Remove cond!
Well, that was short lived, but pcase and pcase-let are superior and already available.
This commit is contained in:
@ -181,13 +181,6 @@ The order VALUES is preserved."
|
|||||||
elt)
|
elt)
|
||||||
,list)))
|
,list)))
|
||||||
|
|
||||||
(defmacro cond! (&rest clauses)
|
|
||||||
"An anaphoric `cond', which stores the conditional value in `it'."
|
|
||||||
`(let (it)
|
|
||||||
(cond ,@(cl-loop for (cond . body) in clauses
|
|
||||||
collect `((setq it ,cond)
|
|
||||||
,@body)))))
|
|
||||||
|
|
||||||
(defmacro defer-until! (condition &rest body)
|
(defmacro defer-until! (condition &rest body)
|
||||||
"Run BODY when CONDITION is true (checks on `after-load-functions'). Meant to
|
"Run BODY when CONDITION is true (checks on `after-load-functions'). Meant to
|
||||||
serve as a predicated alternative to `after!'."
|
serve as a predicated alternative to `after!'."
|
||||||
|
Reference in New Issue
Block a user