Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 80 lines (63 sloc) 2.086 kB
c469167 @josh disable fucking retarded paredit mode
authored
1 (remove-hook 'esk-coding-hook 'esk-local-comment-auto-fill)
2 (remove-hook 'esk-coding-hook 'esk-turn-on-hl-line-mode)
a707d9b @josh Upgrade to starter-kit v2
authored
3 (remove-hook 'esk-coding-hook 'esk-pretty-lambdas)
c469167 @josh disable fucking retarded paredit mode
authored
4 (remove-hook 'esk-coding-hook 'esk-turn-on-paredit)
a707d9b @josh Upgrade to starter-kit v2
authored
5
00f2c14 @josh Run buffer cleanup on coding hook
authored
6 (add-hook 'esk-coding-hook 'esk-cleanup-on-save)
7
3d7cb8d @josh enable textmate mode
authored
8 ;; TextMate mode
a707d9b @josh Upgrade to starter-kit v2
authored
9 (when (functionp 'textmate-mode)
10 (textmate-mode 1))
3d7cb8d @josh enable textmate mode
authored
11
af76c78 @josh use ;; for comments and reindent config files
authored
12 ;; C
df04301 @josh merge modes dir
authored
13 (add-hook 'c-mode-hook
14 '(lambda ()
15 (c-set-style "k&r")
16 (setq c-basic-offset 8)
17 (setq tab-width 8)
00f2c14 @josh Run buffer cleanup on coding hook
authored
18 (setq indent-tabs-mode t)))
df04301 @josh merge modes dir
authored
19
af76c78 @josh use ;; for comments and reindent config files
authored
20 ;; CSS
df04301 @josh merge modes dir
authored
21 (add-hook 'css-mode-hook
af76c78 @josh use ;; for comments and reindent config files
authored
22 '(lambda ()
00f2c14 @josh Run buffer cleanup on coding hook
authored
23 (setq css-indent-offset 2)))
df04301 @josh merge modes dir
authored
24
af76c78 @josh use ;; for comments and reindent config files
authored
25 ;; Diff
ec14256 @josh wrap git commit message lines at 72 chars
authored
26 (add-hook 'diff-mode-hook 'turn-on-auto-fill)
00f2c14 @josh Run buffer cleanup on coding hook
authored
27 (add-hook 'diff-mode-hook '(lambda ()
28 (setq fill-column 72)
29 (flyspell-mode 1)))
67e8f11 @josh enable spell check on text and diff modes
authored
30
af76c78 @josh use ;; for comments and reindent config files
authored
31 ;; HTML
df04301 @josh merge modes dir
authored
32 (add-hook 'html-mode-hook
af76c78 @josh use ;; for comments and reindent config files
authored
33 '(lambda()
00f2c14 @josh Run buffer cleanup on coding hook
authored
34 (setq tab-width 2)))
a707d9b @josh Upgrade to starter-kit v2
authored
35
36 (add-hook 'html-mode-hook 'esk-run-coding-hook)
df04301 @josh merge modes dir
authored
37
af76c78 @josh use ;; for comments and reindent config files
authored
38 ;; js2
df04301 @josh merge modes dir
authored
39 (add-hook 'js2-mode-hook
af76c78 @josh use ;; for comments and reindent config files
authored
40 '(lambda ()
41 (require 'espresso)
42 (setq espresso-indent-level 2)
43 (set (make-local-variable 'indent-line-function)
44 'espresso-indent-line)
45 (define-key js2-mode-map (kbd "RET") 'newline-and-indent)
46 (setq js2-use-font-lock-faces t)))
df04301 @josh merge modes dir
authored
47
117db17 @josh set coffee-mode tab-width to 2
authored
48 ;; coffee
49 (add-hook 'coffee-mode-hook
00f2c14 @josh Run buffer cleanup on coding hook
authored
50 '(lambda()
51 (setq tab-width 2)))
117db17 @josh set coffee-mode tab-width to 2
authored
52
a707d9b @josh Upgrade to starter-kit v2
authored
53 (add-hook 'coffee-mode-hook 'esk-run-coding-hook)
54
af76c78 @josh use ;; for comments and reindent config files
authored
55 ;; Ruby
d579111 @josh don't attempt to reindent the current line on enter
authored
56 (add-hook 'ruby-mode-hook '(lambda ()
6f2e304 @josh change paredit enable style
authored
57 (local-set-key (kbd "RET") 'newline-and-indent)))
242c38a @josh reindent after newline in ruby mode
authored
58
a04bdc5 @josh eshell config
authored
59 ;; eshell
60 (eval-after-load 'esh-opt
df04301 @josh merge modes dir
authored
61 '(progn
a04bdc5 @josh eshell config
authored
62 (setq eshell-prompt-regexp "^$ ")
63 (setq eshell-prompt-function (lambda () "$ "))
64 (setq eshell-history-file-name "~/.history")
a707d9b @josh Upgrade to starter-kit v2
authored
65 (setq eshell-history-size 10000)))
fdd3c67 @josh use requires instead of loads
authored
66
67e8f11 @josh enable spell check on text and diff modes
authored
67 ;; text
68 (add-hook 'text-mode-hook '(lambda () (flyspell-mode 1)))
34a22db @josh Get out of here auto-fill mode!
authored
69 (remove-hook 'text-mode-hook 'turn-on-auto-fill)
67e8f11 @josh enable spell check on text and diff modes
authored
70
e5bec83 @josh enable whitespace mode
authored
71 ;; whitespace
72 (setq whitespace-style
73 '(trailing
74 space-before-tab
75 space-after-tab))
76
77 (global-whitespace-mode 1)
78
fdd3c67 @josh use requires instead of loads
authored
79 (provide 'modes)
Something went wrong with that request. Please try again.