doom: replace ctrlf with isearch+customizations
Making isearch interactive with transient is pretty good and by modifying isearch I can get pretty close to what ctrlf offers already. For heavier needs consult is already here and perfect. So, ctrlf, while nice in providing what can be done with isearch, is no longer necessary.
This commit is contained in:
parent
b543e8f5e9
commit
d43643fac2
1 changed files with 7 additions and 9 deletions
|
@ -146,8 +146,6 @@ Tangle ~packages.el~ from within org-mode.
|
|||
|
||||
(package! org-modern)
|
||||
|
||||
(package! ctrlf)
|
||||
|
||||
(package! editorconfig)
|
||||
|
||||
(package! jinx :type 'built-in :built-in 'prefer)
|
||||
|
@ -921,14 +919,14 @@ All the modifications that are necessary enough to exist, but not big enough to
|
|||
:after (consult)
|
||||
:desc "imenu" :g "C-:" #'consult-imenu))
|
||||
#+end_src
|
||||
** Ctrlf
|
||||
** ISearch
|
||||
#+begin_src emacs-lisp :lexical t
|
||||
(use-package! ctrlf
|
||||
:demand t
|
||||
:commands (ctrlf-mode)
|
||||
(use-package! isearch
|
||||
:after (transient)
|
||||
:config
|
||||
(ctrlf-mode +1)
|
||||
(setq isearch-lazy-count t
|
||||
isearch-lazy-count-total t
|
||||
isearch-lazy-count-current t)
|
||||
(transient-define-prefix b/isearch-menu ()
|
||||
"isearch Menu"
|
||||
[["Edit Search String"
|
||||
|
@ -997,8 +995,8 @@ All the modifications that are necessary enough to exist, but not big enough to
|
|||
isearch-occur
|
||||
:transient nil)]])
|
||||
|
||||
(map! (:map (ctrlf-mode-map)
|
||||
:desc "isearch-menu" "C-." #'b/isearch-menu)))
|
||||
(map! (:map (isearch-mode-map)
|
||||
:desc "isearch-menu" "C-0" #'b/isearch-menu)))
|
||||
#+end_src
|
||||
|
||||
** Company
|
||||
|
|
Reference in a new issue