feat(default): add .emacs.d search on <leader> s e
This commit is contained in:
parent
7933e54542
commit
74aae48944
3 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,17 @@ If prefix ARG is set, prompt for a directory to search from."
|
|||
(interactive)
|
||||
(+default/search-cwd 'other))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/search-emacsd ()
|
||||
"Conduct a text search in files under `user-emacs-directory'."
|
||||
(interactive)
|
||||
(let ((default-directory user-emacs-directory))
|
||||
(call-interactively
|
||||
(cond ((featurep! :completion ivy) #'+ivy/project-search-from-cwd)
|
||||
((featurep! :completion helm) #'+helm/project-search-from-cwd)
|
||||
((featurep! :completion vertico) #'+vertico/project-search-from-cwd)
|
||||
(#'rgrep)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/search-buffer ()
|
||||
"Conduct a text search on the current buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue