core-lib: add doom-quote & doom-enlist
This commit is contained in:
parent
3f5c828169
commit
07299c5020
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue