Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you achieve that?


This is what I have at the top of my ~/.emacs.d/init.el:

  (require 'package)
  (add-to-list 'package-archives
               '("marmalade" . "http://marmalade-repo.org/packages/") t)
  (package-initialize)
  (when (not package-archive-contents)
    (package-refresh-contents))
  (defvar my-packages  '(clojure-mode ...)) ; list of packages
  (dolist (p my-packages)
    (when (not (package-installed-p p))
      (package-install p)))


https://bitbucket.org/zaphar/dotfiles/src/6ce04e6c7bbb03b21f... shows the current setup.

It's gotten more sophisticated over the years. I can probably clean it up some but it works so I haven't touched it :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: