Advertisement
jpkotta

package.el config

Mar 10th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.41 KB | None | 0 0
  1. (setq jpk-packages
  2.       '(
  3.         auctex
  4.         bm
  5.         boxquote
  6.         buffer-move
  7.         csharp-mode
  8.         csv-mode
  9.         diminish
  10.         dired-isearch
  11.         drag-stuff
  12.         etags-select
  13.         etags-table
  14.         findr
  15.         full-ack
  16.         hideshowvis
  17.         htmlize
  18.         ido-ubiquitous
  19.         lua-mode
  20.         mic-paren
  21.         rainbow-mode
  22.         smex
  23.         undo-tree
  24.         wgrep
  25.         workgroups
  26.         wrap-region
  27.         yas-jit
  28.         ))
  29.  
  30. (package-initialize)
  31. (add-to-list 'package-archives
  32.              '("marmalade" . "http://marmalade-repo.org/packages/"))
  33. (add-to-list 'package-archives
  34.              '("ELPA" . "http://tromey.com/elpa/"))
  35.  
  36. (when (not package-archive-contents)
  37.   (package-refresh-contents))
  38.  
  39. (dolist (pkg jpk-packages)
  40.   (when (and (not (package-installed-p pkg))
  41.            (assoc pkg package-archive-contents))
  42.     (package-install pkg)))
  43.  
  44. (defun package-list-unaccounted-packages ()
  45.   "Like `package-list-packages', but shows only the packages that
  46.  are installed and are not in `jpk-packages'.  Useful for
  47.  cleaning out unwanted packages."
  48.   (interactive)
  49.   (package-show-package-list
  50.    (remove-if-not (lambda (x) (and (not (memq x jpk-packages))
  51.                             (not (package-built-in-p x))
  52.                             (package-installed-p x)))
  53.                   (mapcar 'car package-archive-contents))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement