summary refs log tree commit diff
path: root/emacs.d/inits/50_development.el
blob: 4c2ae5d0ad1568ce573c038f4bc8374988bbba85 (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(use-package ag
  :ensure t
  :defer t)

(use-package goto-chg
  :ensure t
  :bind (("C-." . goto-last-change)
         ("C-," . goto-last-change-reverse)))

(use-package projectile
  :ensure t
  :init
  (setq projectile-enable-caching t)
  :config
  (projectile-global-mode))

(use-package helm-projectile
  :ensure t
  :config
  (helm-projectile-on))

(use-package company
  :ensure t
  :config
  (progn
    (add-hook 'prog-mode-hook 'company-mode)))

(use-package rainbow-delimiters
  :ensure t
  :defer t
  :init
  (progn
    (add-hook 'emacs-lisp-mode-hook #'rainbow-delimiters-mode)))

(use-package smartparens
  :ensure t
  :config
  (progn
    (require 'smartparens-config)
    (smartparens-global-mode 1)
    (setq sp-show-pair-delay 0)
    (setq sp-autoinsert-if-followed-by-word nil)
    (show-smartparens-global-mode t)
    (bind-keys :map sp-keymap
               ("C-M-d" . sp-down-sexp)
               ("C-M-a" . sp-backward-down-sexp)
               ("C-S-a" . sp-beginning-of-sexp)
               ("C-S-e" . sp-end-of-sexp)
               ("C-M-f" . sp-forward-sexp)
               ("C-M-b" . sp-backward-sexp)
               ("C-M-u" . sp-backward-up-sexp)
               ("C-M-t" . sp-transpose-sexp)
               ("C-M-n" . sp-next-sexp)
               ("C-M-p" . sp-previous-sexp)
               ("C-M-k" . sp-kill-sexp)
               ("C-M-w" . sp-copy-sexp)
               ("M-<delete>" . sp-unwrap-sexp)
               ("M-<backspace>". sp-backward-unwrap-sexp)
               ("M-<right>" . sp-forward-slurp-sexp)
               ("M-<left>" . sp-forward-barf-sexp)
               ("M-S-<left>" . sp-backward-slurp-sexp)
               ("M-S-<right>" . sp-backward-barf-sexp)
               ("M-d" . sp-splice-sexp))))

(use-package gist
  :ensure t
  :bind ("C-c g p" . gist-region-or-buffer-private)
  :config
  (setq gist-view-gist t))

(use-package github-browse-file
  :ensure t
  :defer t)

(setq-default indent-tabs-mode nil)