PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/rejeep-programming.el

http://github.com/rejeep/emacs
Lisp | 51 lines | 37 code | 11 blank | 3 comment | 0 complexity | b8875d1b4c2a097c6de58f072bb4581b MD5 | raw file
 1;;; rejeep-programming.el --- Programming stuff
 2
 3
 4;; Snippets
 5(require 'dropdown-list)
 6(require 'yasnippet)
 7(yas-global-mode 1)
 8(let ((snippets-dir (expand-file-name "snippets" user-emacs-directory)))
 9  (yas/load-directory snippets-dir)
10  (setq yas/snippet-dirs snippets-dir))
11
12(setq-default
13 yas/prompt-functions
14 '(yas/ido-prompt yas/dropdown-prompt yas/x-prompt yas/completing-prompt yas/no-prompt))
15
16(add-hook 'markdown-mode-hook
17          (lambda ()
18            (define-key markdown-mode-map (kbd "M-n") nil)
19            (define-key markdown-mode-map (kbd "M-p") nil)))
20
21(subword-mode 1)
22
23(require 'markdown-mode)
24(require 'yaml-mode)
25(require 'feature-mode)
26(require 'html-script-src)
27(require 'haml-mode)
28(require 'sass-mode)
29
30(require 'rejeep-java)
31(require 'rejeep-ruby)
32(require 'rejeep-rails)
33(require 'rejeep-css)
34(require 'rejeep-javascript)
35(require 'rejeep-bash)
36(require 'rejeep-lisp)
37(require 'rejeep-c)
38(require 'rejeep-git)
39(require 'rejeep-haskell)
40
41(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
42(add-to-list 'auto-mode-alist '("\.feature$" . feature-mode))
43(add-to-list 'auto-mode-alist '("\.markdown$" . markdown-mode))
44(add-to-list 'auto-mode-alist '("\.md$" . markdown-mode))
45;; Use `js-mode' for ActionScript.
46(add-to-list 'auto-mode-alist '("\\.as$" . js-mode))
47
48(add-hook 'compilation-shell-minor-mode-hook 'ansi-color-for-comint-mode-on)
49
50
51(provide 'rejeep-programming)