tvl-depot/init.el

97 lines
1.9 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
2014-12-29 21:52:21 +01:00
'(;; All packages
ac-cider-compliment
2013-08-19 00:46:54 +02:00
ace-jump-mode
2015-05-03 18:22:08 +02:00
ag
browse-kill-ring
2014-12-29 21:52:21 +01:00
cider
clojure-mode
2014-02-25 17:12:53 +01:00
confluence
2013-10-19 20:04:45 +02:00
dash
2014-12-29 21:52:21 +01:00
dockerfile-mode
2015-01-16 14:42:48 +01:00
erlang
flx-ido
flycheck
go-mode
haskell-mode
2014-12-29 21:52:21 +01:00
hi2
idle-highlight-mode
ido-ubiquitous
iy-go-to-char
magit
2014-12-29 21:52:21 +01:00
markdown-mode+
2013-07-30 16:19:58 +02:00
multiple-cursors
2015-05-03 18:22:58 +02:00
multi-term
2014-06-15 12:22:18 +02:00
mvn
nyan-mode
paredit
2014-06-15 12:22:18 +02:00
password-store
2014-12-29 21:52:21 +01:00
pkgbuild-mode
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
smart-mode-line
2014-12-29 21:52:21 +01:00
smex
switch-window
undo-tree
2014-12-29 21:52:21 +01:00
yaml-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-setup
2014-12-29 21:51:25 +01:00
))
(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)
;; Seed RNG
(random t)
2014-06-15 12:22:18 +02:00
;; SML should respect theme colours
2014-12-29 21:52:21 +01:00
;; (setq sml/theme 'black)
2014-06-15 12:22:18 +02:00
(sml/setup)