dotfiles/editors/emacs/init.el

58 lines
1.9 KiB
EmacsLisp
Raw Normal View History

(require 'cl) ; needed for powerline
2012-08-18 13:24:55 +10:00
(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; Add in your own as you wish:
(defvar my-packages '(starter-kit
starter-kit-ruby
starter-kit-lisp
starter-kit-eshell
starter-kit-js
clojure-mode
2012-10-24 01:17:57 +11:00
clojure-test-mode
clojurescript-mode
2012-09-03 08:34:23 +10:00
autopair
ruby-tools
ruby-end
ruby-electric
2012-10-24 02:40:08 +11:00
markdown-mode
2012-08-18 13:24:55 +10:00
color-theme
color-theme-molokai
2012-10-29 06:03:47 +11:00
color-theme-sanityinc-tomorrow
2012-08-28 04:30:01 +10:00
rainbow-delimiters
2012-08-18 13:24:55 +10:00
ctags
paredit
undo-tree
org
powerline
2012-09-03 08:34:23 +10:00
evil
2012-09-08 03:11:37 +10:00
surround)
2012-08-18 13:24:55 +10:00
"A list of packages to ensure are installed at launch.")
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;; This takes a really long time because ZSH init scripts are TOO slow!
;; Thoughts:
;; * Extract a lot of non-interactive ZSH stuff to spawn from
;; .zshenv and adjust exec-path-from-shell to not start interactive
;; shell
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
;; TODO:
;; * Go snippets
;; * Custom ruby/rspec snippetts
;; * proper auto-complete / intellisense
;; * auto pop-up (~100ms)
;; * intuitive TAB/ENTER support
;; * can be backed by REPL, ctags, buffer words, etc
;; * Plug snippets into auto-complete