forked from lest/emacs-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrc-misc.el
45 lines (35 loc) · 1.22 KB
/
rc-misc.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
;; yasnippet
;;(require 'yasnippet-bundle)
;;(setq yas/prompt-functions '(yas/dropdown-prompt
;; yas/ido-prompt
;; yas/completing-prompt))
;; auto-complete
(add-to-list 'load-path (concat config-dir "vendor/auto-complete"))
(add-to-list 'load-path (concat config-dir "vendor/auto-complete/lib/popup"))
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(setq ac-comphist-file "~/.emacs.d/ac-comphist.dat")
(ac-config-default)
;; markdown-mode
(add-to-list 'load-path (concat config-dir "vendor/markdown-mode"))
;; haml-mode.el
(require 'haml-mode)
;; sass-mode.el
(require 'sass-mode)
;; yaml
(autoload 'yaml-mode "yaml-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
;; css
(setq css-indent-offset 2)
;; git
(add-to-list 'load-path (concat config-dir "vendor/magit"))
(autoload 'magit-status "magit" nil t)
(global-set-key (kbd "C-c g") 'magit-status)
;; nav
(add-to-list 'load-path (concat config-dir "vendor/nav"))
(autoload 'nav "nav" nil t)
;; nginx config files
(add-to-list 'load-path (concat config-dir "vendor/nginx-mode"))
(autoload 'nginx-mode "nginx-mode" nil t)
;; in calendar monday is a first day of the weeky
(setq calendar-week-start-day 1)