/
emacs-vendor.el
45 lines (35 loc) · 1.3 KB
/
emacs-vendor.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
;; emacs-vedor.el - general purpose modes to extend emacs
(load-lib-dir "vendor")
;; Interactively Do Things (ido) emacs is more fun with ido fo real
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t)
;; Unbound - describe-unbound-keys
(require 'unbound)
;; Textmate mode
(textmate-mode t)
(global-set-key (kbd "M-RET") 'textmate-next-line)
(global-set-key (kbd "M-/") 'comment-or-uncomment-region-or-line)
(global-set-key (kbd "M-t") 'textmate-goto-file)
(global-set-key (kbd "M-T") 'textmate-goto-symbol)
(global-set-key (kbd "M-F") 'ack)
(global-set-key (kbd "C-x g") 'magit-status)
(eval-after-load 'magit
'(progn
(set-face-foreground 'magit-diff-add "green3")
(set-face-foreground 'magit-diff-del "red3")))
;; Textile
(require 'textile-mode)
(add-to-list 'auto-mode-alist '("\\.textile\\'" . textile-mode))
;; Markdown
(autoload 'markdown-mode "markdown-mode/markdown-mode.el"
"Major mode for editing Markdown files" t)
(setq auto-mode-alist
(cons '("\\.text" . markdown-mode) auto-mode-alist))
;; Javascript (espresso)
(autoload 'espresso-mode "espresso" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . espresso-mode))
(add-to-list 'auto-mode-alist '("\\.json$" . espresso-mode))
(setq espresso-indent-level 2)
;; Cheat - for using cheat.errtheblog.com for some reference
(require 'cheat)