Advertisement
mark-naylor-1701

Elisp Export Package List

Sep 8th, 2016 (edited)
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.35 KB | None | 0 0
  1. (defun export-package-list ()
  2.   (interactive)
  3.   (find-file "~/emacs_packages.txt")
  4.   (delete-region 1 (buffer-end 1))
  5.   (->> package-selected-packages
  6.        copy-seq
  7.        delete-dups
  8.        (mapcar #'symbol-name)
  9.        ((lambda (xs) (sort xs #'string<)))
  10.        (s-join (char-to-string 10))
  11.        insert)
  12.   (save-buffer)
  13.   (kill-buffer))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement