1
0
Fork 0

refactor(emacs): remove misc.el

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-03 18:31:17 -05:00
parent e8bbfc318d
commit 9b862b7d2b
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
10 changed files with 219 additions and 301 deletions

View file

@ -1,22 +0,0 @@
;;; utils.el --- Utility functions.
;;; Commentary:
;; Provides utility functions.
;;; Code:
(defun lists->alist (l1 l2)
"Transform lists L1 (keys) and L2 (values) into a single alist."
(cond ((and (null l1)
(null l2))
'())
((or (null l1)
(null l2))
(error "Lists L1 and L2 have to be of equal length"))
((and (consp l1)
(consp l2))
(cons `(,(car l1) . ,(car l2))
(lists->alist (cdr l1)
(cdr l2))))))
(provide 'utils)
;;; utils.el ends here