summary refs log tree commit diff
path: root/emacs.d/core/core-editor.el
blob: ddc59b42d26face5f4701a4f4ab327b676de13d7 (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
(use-package swiper
  :ensure t
  :bind (("C-s"   . swiper))
  :config
  (setq ivy-use-virtual-buffers t)
  (ivy-mode))

(use-package counsel
  :ensure t
  :config
  (setq counsel-find-file-at-point t))

(use-package helm
  :ensure t)

(when (memq window-system '(mac ns x))
  (use-package exec-path-from-shell
    :ensure t
    :init (setq exec-path-from-shell-debug +1)
    :config
    (exec-path-from-shell-initialize)
    (exec-path-from-shell-copy-envs '("TMPDIR"))))

(use-package dired
  :commands dired
  :init
  (setq dired-listing-switches "-laGhv"))

(use-package ag
  :ensure t
  :defer t)

(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)))

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

(use-package server
  :config
  (unless (server-running-p)
    (server-start)))

(provide 'core-editor)