Skip to content

Instantly share code, notes, and snippets.

View tpanum's full-sized avatar

Thomas Kobber Panum tpanum

View GitHub Profile
@tpanum
tpanum / packages.el
Last active August 29, 2015 14:08
Emacs 24.4 updates to JEG2's packages.el
(defun jeg2/package-version-for (package)
"Get the version of a loaded package."
(package-desc-version (car (cdr (assoc package package-alist)))))
(defun jeg2/package-requirements (package)
"List of recursive dependencies for a package."
(let ((package-info (car (cdr (assoc package package-alist)))))
(cond ((null package-info) (list package))
(t
(jeg2/flatten