about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-09-15 19:34:50 -0500
committerCase Duckworth2020-09-15 19:34:50 -0500
commit2937f2aee4273bf9c76bba9bcefb92a502d901d4 (patch)
treee8637cd40c9a8c862fca5acf69732727f7d7a3be
parentFix no-littering, add delete-selection-mode, add fork (diff)
downloademacs-2937f2aee4273bf9c76bba9bcefb92a502d901d4.tar.gz
emacs-2937f2aee4273bf9c76bba9bcefb92a502d901d4.zip
Switch ivy/counsel/swiper to selectrum/ctrlf
-rw-r--r--init.el72
1 files changed, 18 insertions, 54 deletions
diff --git a/init.el b/init.el index 839d87a..6a60738 100644 --- a/init.el +++ b/init.el
@@ -157,65 +157,29 @@
157 ([remap kill-ring-save] . easy-kill) 157 ([remap kill-ring-save] . easy-kill)
158 ([remap mark-sexp] . easy-mark)) 158 ([remap mark-sexp] . easy-mark))
159 159
160 (use-package ivy 160(use-package whole-line-or-region
161 :init
162 (setq ivy-use-virtual-buffers t)
163 (setq ivy-wrap t)
164 (setq ivy-count-format "(%d/%d) ")
165 (setq enable-recursive-minibuffers t)
166 (setq ivy-re-builders-alist
167 '((read-file-name-internal . ivy--regex-fuzzy)
168 (t . ivy--regex-plus)))
169 :bind
170 ("C-x b" . ivy-switch-buffer)
171 ("C-c v" . ivy-push-view)
172 ("C-c V" . ivy-pop-view)
173 ("C-c C-r" . ivy-resume)
174 :config
175 (ivy-mode))
176
177(use-package swiper
178 :bind
179 ("C-s" . swiper-isearch))
180
181(use-package counsel ; includes ivy, counsel, swiper
182 :bind
183 ("M-x" . counsel-M-x)
184 ("C-x C-f" . counsel-find-file)
185 ("M-y" . counsel-yank-pop)
186 ("<f1> f" . counsel-describe-function)
187 ("<f1> v" . counsel-describe-variable)
188 ("<f1> l" . counsel-find-library)
189 ("<f2> i" . counsel-info-lookup-symbol)
190 ("<f2> u" . counsel-unicode-char)
191 ("<f2> j" . counsel-set-variable)
192 ("C-c c" . counsel-compile)
193 ("C-c g" . counsel-git)
194 ("C-c j" . counsel-git-grep)
195 ("C-c L" . counsel-git-log)
196 ("C-c k" . counsel-rg)
197 ("C-c m" . counsel-linux-app)
198 ("C-x l" . counsel-locate)
199 ("C-c J" . counsel-file-jump)
200 ("C-c b" . counsel-bookmark)
201 ("C-c d" . counsel-descbinds)
202 ("C-c g" . counsel-git)
203 ("C-c o" . counsel-outline)
204 ("C-c t" . counsel-load-theme)
205 ("C-c F" . counsel-org-file))
206
207(use-package ivy-rich
208 :after ivy
209 :config 161 :config
210 (ivy-rich-mode) 162 (whole-line-or-region-global-mode 1))
211 (setcdr (assq t ivy-format-functions-alist)
212 #'ivy-format-function-line))
213 163
214(use-package avy 164(use-package avy
215 :bind 165 :bind
216 ("M-s" . avy-goto-char-timer) 166 ("M-s" . avy-goto-char-timer))
167
168(use-package selectrum
169 :init (ido-mode nil) ;; why is this necessary??
170 :config
171 (selectrum-mode 1))
172
173(use-package prescient)
174
175(use-package selectrum-prescient
176 :config
177 (selectrum-prescient-mode 1)
178 (prescient-persist-mode 1))
179
180(use-package ctrlf
217 :config 181 :config
218 (use-package ivy-avy)) 182 (ctrlf-mode 1))
219 183
220;;; programming 184;;; programming
221 185