-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutilities.el
56 lines (48 loc) · 1.89 KB
/
utilities.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
;; load necessary packages if not installed
(when (not package-archive-contents)
(package-refresh-contents))
(defvar utilities-packages '(
expand-region
ace-jump-mode
projectile helm helm-projectile grizzl
powerline
smooth-scroll
undo-tree
flycheck flymake
color-theme
auto-complete
magit
))
(dolist (p utilities-packages)
(package-install p))
;; -----------------------------------------------------------------------------
;; POWERLINE
;; -----------------------------------------------------------------------------
(require 'powerline)
;; -----------------------------------------------------------------------------
;; EXPAND REGION
;; -----------------------------------------------------------------------------
(require 'expand-region)
(global-set-key (kbd "C-@") 'er/expand-region)
;; -----------------------------------------------------------------------------
;; ACE JUMP MODE
;; -----------------------------------------------------------------------------
; needtodownload
(require 'ace-jump-mode)
(define-key global-map (kbd "C-c SPC") 'ace-jump-mode)
;; -----------------------------------------------------------------------------
;; IDO MODE
;; -----------------------------------------------------------------------------
(ido-mode 1)
;; -----------------------------------------------------------------------------
;; PROJECTILE
;; -----------------------------------------------------------------------------
(projectile-global-mode)
(setq projectile-completion-system 'grizzl)
(global-set-key (kbd "C-x C-h") 'helm-projectile)
(setq projectile-indexing-method 'native)
(setq projectile-enable-caching t)
;; -----------------------------------------------------------------------------
;; AUTOCOMPLETE
;; -----------------------------------------------------------------------------
(global-auto-complete-mode t)