forked from technomancy/emacs-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pe.el
70 lines (50 loc) · 1.66 KB
/
pe.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
;; Peter's emacs customization
(add-to-list 'load-path (concat dotfiles-dir "/vendor"))
;; HAML
(add-to-list 'load-path (concat dotfiles-dir "/vendor/haml-mode"))
(require 'haml-mode)
;; mo-git-blame
(add-to-list 'load-path (concat dotfiles-dir "/vendor/mo-git-blame"))
(autoload 'mo-git-blame-file "mo-git-blame" nil t)
(autoload 'mo-git-blame-current "mo-git-blame" nil t)
;; gitsum
(add-to-list 'load-path (concat dotfiles-dir "/vendor/gitsum"))
(require 'gitsum)
;; Reset some starter-kit settings
(setq inhibit-startup-message nil
shift-select-mode t
ido-use-filename-at-point nil)
(menu-bar-mode t)
; rails-reloaded
(add-to-list 'load-path (concat dotfiles-dir "/vendor/emacs-rails-reloaded"))
(require 'rails-autoload)
;; rhtml mode
(add-to-list 'load-path (concat dotfiles-dir "/vendor/rhtml"))
(require 'rhtml-mode)
;; Misc
(server-start)
;; Flyspell
;(add-hook 'text-mode-hook 'turn-on-flyspell)
(add-hook 'markdown-mode-hook 'turn-on-flyspell)
;; Calendar
(require 'german-holidays)
;; force UTF-8
(prefer-coding-system 'utf-8)
;;YAML
(add-to-list 'load-path (concat dotfiles-dir "/vendor/yaml-mode"))
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
;; Textile
(require 'textile-mode)
;; start ECB
;;(ecb-activate)
;; JS2 doesn't compile
;(add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
;; indent-rigidly
(global-set-key (kbd "C-x C-i") 'indent-rigidly)
;; No text- nor flyspell-mode in html-mode
(add-hook 'html-mode-hook 'turn-off-auto-fill)
(add-hook 'html-mode-hook 'turn-off-flyspell)
(add-to-list 'auto-mode-alist '("\\.ds$" . espresso-mode))
(setq ffip-patterns '("*"))
(setq js-indent-level 2)