Skip to content

Instantly share code, notes, and snippets.

@lamdor
Created November 5, 2013 14:31
Show Gist options
  • Select an option

  • Save lamdor/7319871 to your computer and use it in GitHub Desktop.

Select an option

Save lamdor/7319871 to your computer and use it in GitHub Desktop.
;; expand-region, mark-multiple, enclose, wrap-region, scala-mode2
(defun load-init (name)
(load-file (concat user-emacs-directory "/init/init-" name ".el")))
(defun package-install-with-init (name)
(when (not (package-installed-p name))
(package-install name))
(require name)
(load-init (symbol-name name)))
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-refresh-contents)
(package-install-with-init 'diminish)
(package-install-with-init 'expand-region)
(package-install-with-init 'paredit)
(package-install-with-init 'enclose)
(package-install-with-init 'wrap-region)
(package-install-with-init 'scala-mode2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment