mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
core-lib: add doom-quote & doom-enlist
This commit is contained in:
@ -51,6 +51,16 @@
|
|||||||
collect hook
|
collect hook
|
||||||
else collect (intern (format "%s-hook" (symbol-name hook))))))
|
else collect (intern (format "%s-hook" (symbol-name hook))))))
|
||||||
|
|
||||||
|
(defun doom-unquote (exp)
|
||||||
|
"Return EXP unquoted."
|
||||||
|
(while (memq (car-safe exp) '(quote function))
|
||||||
|
(setq exp (cadr exp)))
|
||||||
|
exp)
|
||||||
|
|
||||||
|
(defun doom-enlist (exp)
|
||||||
|
"Return EXP wrapped in a list, or as-is if already a list."
|
||||||
|
(if (listp exp) exp (list exp)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Library
|
;; Library
|
||||||
|
Reference in New Issue
Block a user