4 ms·
My emacs automatically downloads and installs all my used packages on first startup on a fresh install. Literally all I have to do on a new box is clone my dotf
by zaphar 14y ago
My emacs automatically downloads and installs all my used packages on first startup on a fresh install. Literally all I have to do on a new box is clone my dotfiles and start emacs.
- foobarqux 14y agoHow do you achieve that?
- spacemanaki 14y agoThis 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)))
- zaphar 14y agohttps://bitbucket.org/zaphar/dotfiles/src/6ce04e6c7bbb03b21fd1ff08ba0e764bb0c052d4/.emacs.d/conf.d/001-my-packages.el?at=default 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 :-)