2013-07-08 01:15:05 +02:00
|
|
|
;; Configure package manager
|
|
|
|
(require 'package)
|
|
|
|
|
|
|
|
;; Add Marmalade repo
|
|
|
|
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
|
|
|
|
|
|
|
|
;; ... and melpa. Melpa packages that exist on marmalade will have
|
|
|
|
;; precendence.
|
|
|
|
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
|
|
|
|
|
|
|
|
(package-initialize)
|
|
|
|
|
|
|
|
(when (not package-archive-contents)
|
|
|
|
(package-refresh-contents))
|
|
|
|
|
2013-07-29 00:53:08 +02:00
|
|
|
(defvar my-pkgs
|
2013-08-19 00:46:54 +02:00
|
|
|
'(ac-nrepl
|
|
|
|
ace-jump-mode
|
2013-07-29 00:53:08 +02:00
|
|
|
browse-kill-ring
|
|
|
|
clojure-mode
|
|
|
|
flycheck
|
2013-08-03 15:36:05 +02:00
|
|
|
flx-ido
|
2013-07-29 00:53:08 +02:00
|
|
|
haskell-mode
|
|
|
|
hi2
|
|
|
|
idle-highlight-mode
|
|
|
|
ido-ubiquitous
|
2013-08-06 23:46:26 +02:00
|
|
|
iy-go-to-char
|
2013-07-29 00:53:08 +02:00
|
|
|
leuven-theme
|
|
|
|
magit
|
|
|
|
magit
|
|
|
|
markdown-mode
|
2013-07-30 16:19:58 +02:00
|
|
|
multiple-cursors
|
2013-07-29 00:53:08 +02:00
|
|
|
nrepl
|
2013-08-06 23:46:26 +02:00
|
|
|
nyan-mode
|
2013-07-29 00:53:08 +02:00
|
|
|
paredit
|
|
|
|
projectile
|
|
|
|
rainbow-delimiters
|
|
|
|
rainbow-mode
|
|
|
|
smex
|
2013-08-06 23:46:26 +02:00
|
|
|
switch-window
|
2013-07-30 16:19:58 +02:00
|
|
|
undo-tree
|
2013-07-29 00:53:08 +02:00
|
|
|
geiser
|
|
|
|
quack)
|
2013-07-08 01:15:05 +02:00
|
|
|
"A list of packages to install at launch.")
|
|
|
|
|
|
|
|
(dolist (p my-pkgs)
|
|
|
|
(when (not (package-installed-p p))
|
|
|
|
(package-install p)))
|
|
|
|
|
2013-08-07 00:49:20 +02:00
|
|
|
;; Are we on a mac?
|
|
|
|
(setq is-mac (equal system-type 'darwin))
|
2013-07-08 01:15:05 +02:00
|
|
|
|
2013-08-07 00:49:20 +02:00
|
|
|
(add-to-list 'load-path user-emacs-directory)
|
|
|
|
|
|
|
|
(mapc 'require '(init-functions
|
|
|
|
init-settings
|
|
|
|
init-modes
|
|
|
|
init-bindings
|
|
|
|
init-eshell))
|
2013-07-08 01:15:05 +02:00
|
|
|
|
2013-07-19 13:57:13 +02:00
|
|
|
(add-to-list 'load-path "~/.emacs.d/scripts/")
|
|
|
|
|
2013-07-08 01:15:05 +02:00
|
|
|
(setq custom-file "~/.emacs.d/init-custom.el")
|
|
|
|
(load custom-file)
|
|
|
|
|
2013-08-05 15:34:46 +02:00
|
|
|
;; A file with machine specific settings.
|
|
|
|
(load-file-if-exists "~/.emacs.d/init-local.el")
|
2013-07-25 20:22:57 +02:00
|
|
|
|
2013-07-08 01:15:05 +02:00
|
|
|
;; IRC configuration (erc)
|
|
|
|
;; Actual servers and such are loaded from irc.el
|
2013-08-05 15:37:43 +02:00
|
|
|
(load-file-if-exists "~/.emacs.d/init-irc.el")
|
2013-07-08 01:15:05 +02:00
|
|
|
|
2013-08-05 11:54:38 +02:00
|
|
|
;; Load magnars' string manipulation library
|
|
|
|
(require 's)
|
|
|
|
|
2013-07-08 01:15:05 +02:00
|
|
|
;; Seed RNG
|
|
|
|
(random t)
|
|
|
|
|
|
|
|
;; Start server for emacsclient
|
|
|
|
(server-start)
|