Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

dotemacs

my dot emacs setup. uses ELPA to install a bunch of packages if not already installed.

first list packages that need to be installed

(setq installed-packages '(
			   color-theme
			   color-theme-solarized
			   yasnippet
			   .......))

initialise list of package archives

(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
			 ("marmalade" . "http://marmalade-repo.org/packages/")))
			 ("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)

refresh contents if not present

(when (not package-archive-contents) (package-refresh-contents))

install packages from the list if not installed already

(dolist (package installed-packages)
  (when (and (not (package-installed-p package))
	     (assoc package package-archive-contents))
    (message "package is %s" package)
    (package-install package)))

About

my dot emacs setup

Resources

Releases

No releases published
You can’t perform that action at this time.