diff options
author | Guangxiong Lin <[email protected]> | 2022-03-12 01:57:24 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-12 01:57:24 +0800 |
commit | 7d1dbb644eed690bb348ec8d0cdd62350c112a35 (patch) | |
tree | 6f77d9587befd6700f9ba11bfada674aeec32310 /.emacs.d | |
parent | ddaedccc85d189987cd14253c96c16cb7c4ee2b2 (diff) | |
download | dotfiles-7d1dbb644eed690bb348ec8d0cdd62350c112a35.tar.gz dotfiles-7d1dbb644eed690bb348ec8d0cdd62350c112a35.tar.bz2 dotfiles-7d1dbb644eed690bb348ec8d0cdd62350c112a35.zip |
Improve file finder and search in emacs
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-misc.el | 13 |
1 files 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 "<leader>fb") 'ivy-switch-buffer (kbd "<leader>fm") 'counsel-recentf (kbd "<leader>fc") 'counsel-M-x - (kbd "<leader>ff") 'counsel-find-file (kbd "<leader>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 "<leader>p") 'projectile-command-map) + (evil-define-key 'normal projectile-mode-map + (kbd "<leader>p") 'projectile-command-map + (kbd "<leader>ff") 'projectile-find-file + (kbd "<leader>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 |