From 7d1dbb644eed690bb348ec8d0cdd62350c112a35 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 12 Mar 2022 01:57:24 +0800 Subject: Improve file finder and search in emacs --- .emacs.d/lisp/init-misc.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index fd488a6..0e34af4 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -74,7 +74,6 @@ (kbd "fb") 'ivy-switch-buffer (kbd "fm") 'counsel-recentf (kbd "fc") 'counsel-M-x - (kbd "ff") 'counsel-find-file (kbd "fl") 'swiper) (global-set-key (kbd "C-c C-r") 'ivy-resume) :config @@ -106,14 +105,18 @@ (use-package projectile :init - (evil-define-key 'normal projectile-mode-map - (kbd "p") 'projectile-command-map) + (evil-define-key 'normal projectile-mode-map + (kbd "p") 'projectile-command-map + (kbd "ff") 'projectile-find-file + (kbd "fr") 'projectile-ripgrep) + (setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory) + projectile-require-project-root nil) :config - (setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory)) (projectile-mode 1)) (use-package rg - :ensure t) + :ensure t + :commands (rg rg-menu)) (use-package esup :ensure t -- cgit v1.2.3