Goodbye Helm, hello Ivy
This commit is contained in:
parent
e8344945f5
commit
bc33e39823
14 changed files with 191 additions and 83 deletions
35
core/core-ivy.el
Normal file
35
core/core-ivy.el
Normal file
|
@ -0,0 +1,35 @@
|
|||
;;; core-ivy.el
|
||||
;; see defuns/defuns-ivy.el
|
||||
|
||||
(use-package ivy
|
||||
:init
|
||||
(setq projectile-completion-system 'ivy
|
||||
ivy-height 15
|
||||
ivy-do-completion-in-region nil)
|
||||
|
||||
:config
|
||||
(ivy-mode +1)
|
||||
(map! :map ivy-minibuffer-map
|
||||
[escape] 'keyboard-escape-quit
|
||||
"C-w" 'backward-kill-word
|
||||
"C-u" 'backward-kill-sentence
|
||||
"C-b" 'backward-word
|
||||
"C-f" 'forward-word)
|
||||
|
||||
(require 'counsel)
|
||||
(defun counsel-ag-function (string)
|
||||
"Grep in the current directory for STRING."
|
||||
(if (< (length string) 1)
|
||||
(counsel-more-chars 1)
|
||||
(let ((default-directory counsel--git-grep-dir)
|
||||
(regex (counsel-unquote-regex-parens
|
||||
(setq ivy--old-re
|
||||
(ivy--regex string)))))
|
||||
(counsel--async-command
|
||||
(format counsel-ag-base-command (shell-quote-argument regex)))
|
||||
nil))))
|
||||
|
||||
(use-package counsel-projectile :after projectile)
|
||||
|
||||
(provide 'core-ivy)
|
||||
;;; core-ivy.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue