tvl-depot/init.el

94 lines
1.8 KiB
EmacsLisp
Raw Normal View History

;; 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.
2013-10-17 14:22:50 +02:00
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
;; And load things!
(package-refresh-contents)
(package-initialize)
(defvar my-pkgs
'(; Basic functionality
2013-08-19 00:46:54 +02:00
ace-jump-mode
2014-01-30 14:26:52 +01:00
ack-and-a-half
browse-kill-ring
2014-02-25 17:12:53 +01:00
confluence
2013-10-19 20:04:45 +02:00
dash
flx-ido
flycheck
go-mode
haskell-mode
idle-highlight-mode
ido-ubiquitous
iy-go-to-char
magit
2013-07-30 16:19:58 +02:00
multiple-cursors
2014-06-15 12:22:18 +02:00
mvn
nyan-mode
paredit
2014-06-15 12:22:18 +02:00
password-store
projectile
2013-10-21 13:28:13 +02:00
puppet-mode
rainbow-delimiters
rainbow-mode
2014-06-15 12:22:18 +02:00
rust-mode
2014-02-25 17:12:53 +01:00
s
smex
smart-mode-line
switch-window
undo-tree
; Clojure
2014-02-25 17:12:53 +01:00
ac-cider-compliment
2013-10-19 19:34:30 +02:00
cider
clojure-mode
)
"A list of packages to install at launch.")
(dolist (p my-pkgs)
(when (not (package-installed-p p))
(package-install p)))
;; Are we on a mac?
(setq is-mac (equal system-type 'darwin))
2014-01-30 14:26:52 +01:00
;; Or on Linux?
(setq is-linux (equal system-type 'gnu/linux))
;; What's the home folder?
(defvar home-dir)
(setq home-dir (expand-file-name "~"))
(add-to-list 'load-path (concat user-emacs-directory "init"))
2014-10-21 19:37:19 +02:00
(mapc 'require '(functions
settings
modes
bindings
2014-12-29 21:51:25 +01:00
eshell-setup
clojure
haskell
))
(add-to-list 'load-path (concat user-emacs-directory "scripts"))
2014-10-21 19:37:19 +02:00
(setq custom-file (concat user-emacs-directory "init/custom.el"))
(load custom-file)
;; Load magnars' string manipulation library
(require 's)
2014-02-25 17:12:53 +01:00
(require 'ack-and-a-half)
;; Seed RNG
(random t)
2014-06-15 12:22:18 +02:00
;; SML should respect theme colours
2014-10-21 19:11:09 +02:00
; (setq sml/theme 'black)
2014-06-15 12:22:18 +02:00
(sml/setup)