This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-helm.el
92 lines (77 loc) · 2.36 KB
/
init-helm.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
;; helm settings (TAB in helm window for actions over selected items,
;; C-SPC to select items)
(use-package projectile
:ensure t
:config
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(require 'tramp)
(setq projectile-mode-line-function (lambda () (format " P[%s]" (projectile-project-name))))
(projectile-mode)
(setq projectile-require-project-root nil)
; without this projectile will try to run svn list to find project files
(setq projectile-svn-command "find . -type f -print0")
(add-to-list 'projectile-globally-ignored-directories "target")
(add-to-list 'projectile-globally-ignored-directories "node_modules")
(add-to-list 'projectile-globally-ignored-directories ".ensime_cache")
(add-to-list 'projectile-globally-ignored-directories "vendor"))
(use-package helm
:ensure t
:diminish helm-mode
:bind (("M-x" . helm-M-x)
("C-x C-f" . helm-find-files)
([remap execute-extended-command] . helm-M-x)
([remap yank-pop] . helm-show-kill-ring)
([remap insert-register] . helm-register)
([remap apropos-command] . helm-apropos)
([remap occur] . helm-occur)
:map helm-map
([esc] . helm-keyboard-quit)
("C-w" . backward-kill-word)
("C-r" . evil-paste-from-register)
:map helm-grep-map
("C-w" . backward-kill-word))
:config
(require 'helm-grep)
(setq helm-quick-update t)
(setq helm-bookmark-show-location t)
(setq helm-buffers-fuzzy-matching t)
(setq projectile-completion-system 'helm)
(setq helm-buffer-max-length 40)
(helm-mode 1))
(use-package helm-projectile
:ensure t
:init
(helm-projectile-on))
(use-package helm-unicode
:ensure t
:defer t
:after helm
:bind (("C-c i 8" . helm-unicode)))
(use-package helm-rage
:ensure t
;:load-path "/data/home/phaun/development/projects/helm-rage"
:defer t
:init
(define-key global-map (kbd "C-c r") 'helm-rage)
:after helm)
(use-package helm-ag
:ensure t
:defer t
:after helm
:bind(
:map helm-ag-map
("C-w" . backward-kill-word)))
(use-package helm-rg
:ensure t
:defer t
:after helm
:init
(setq helm-rg-ripgrep-executable (expand-file-name "~/.cargo/bin/rg"))
:bind(
:map helm-rg-map
("C-w" . backward-kill-word)))
(use-package helm-swoop
:ensure t
:defer t
:after helm)
(provide 'init-helm)