-
Notifications
You must be signed in to change notification settings - Fork 0
/
ide.el
61 lines (50 loc) · 1.31 KB
/
ide.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
;; helm
(use-package helm)
;; projectile
;;(use-package flx-ido)
(use-package projectile
:demand
:init (setq projectile-use-git-grep t)
:config (projectile-global-mode t)
:bind (("M-f" . helm-projectile-find-file)
("M-r" . helm-projectile-grep)))
(use-package helm-projectile
:init (helm-projectile-on))
;; undo
(use-package undo-tree
:diminish undo-tree-mode
:config (global-undo-tree-mode)
:bind ("M-/" . undo-tree-visualize))
;; move-text
(use-package move-text)
(require 'expand-region)
(global-set-key (kbd "M-e") 'er/expand-region)
(global-set-key (kbd "M-E") 'er/contract-region)
;; rainbow-delimiters
(use-package rainbow-delimiters
:init (rainbow-delimiters-mode))
;; smartparentheses
(use-package smartparens
:diminish smartparens-mode
:commands
smartparens-strict-mode
smartparens-mode
sp-restrict-to-pairs-interactive
sp-local-pair
:init
(setq sp-interactive-dwim t)
:config
(require 'smartparens-config)
(sp-use-smartparens-bindings)
(sp-pair "(" ")" :wrap "C-(")
(sp-pair "[" "]" :wrap "s-[")
(sp-pair "{" "}" :wrap "C-{"))
;; completions
(use-package company)
(global-set-key (kbd "TAB") 'company-complete)
(setq tab-always-indent 'company-complete)
;; git-gutter
(use-package git-gutter
:init (global-git-gutter-mode +1))
;; magit
(use-package magit)