-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.el
92 lines (74 loc) · 2.43 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
(setq load-path (cons "~/.emacs.d" load-path))
(require 'auto-package)
(defvar my-packages '(melpa
starter-kit
starter-kit-lisp
starter-kit-bindings
starter-kit-eshell
textmate
;; themes
color-theme-sanityinc-solarized
molokai-theme
;; clojure
clojure-mode
clojure-test-mode
clojurescript-mode
;; ruby
rinari
rspec-mode
;; js
js2-mode
coffee-mode
;; markup
haml-mode
less-css-mode
sass-mode
scss-mode
markdown-mode
;; flymake
flymake-shell
flymake-ruby
flymake-haml
flymake-css
;; navigation
ack-and-a-half
ascope
;; editing
auto-complete
smooth-scrolling
browse-kill-ring
undo-tree
yasnippet
;; utils
magit
melpa
todochiku
multiple-cursors)
"A list of packages to ensure are installed at launch.")
;; packages TODO: helm or anything.el, projectile
;; custom TODO: ctags, maxframe on start
(auto-package-install my-packages)
;; tabs are 2 spaces
(setq-default tab-width 2)
(setq css-indent-offset 2)
(setq js-indent-level 2)
(setq js2-basic-offset 2)
(setq-default indent-tabs-mode nil)
(setq scss-compile-at-save nil)
(require 'environment)
(require 'key-bindings)
(require 'generate-tags)
(require 'maxframe)
(require 'ruby-electric)
(require 'duplicate-line)
(require 'emacs-monk)
(textmate-mode)
(global-undo-tree-mode)
(global-linum-mode t)
(yas-global-mode)
(add-hook 'ruby-mode-hook 'ruby-electric-mode)
(add-hook 'window-setup-hook 'maximize-frame t)
(add-hook 'html-mode-hook 'turn-off-auto-fill)
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)