From 38ab771977e6511d02df06cb908824707d728303 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 00:07:38 +0800 Subject: Refactor emacs config Use less use-package features --- .emacs.d/lisp/init-projectile.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .emacs.d/lisp/init-projectile.el (limited to '.emacs.d/lisp/init-projectile.el') diff --git a/.emacs.d/lisp/init-projectile.el b/.emacs.d/lisp/init-projectile.el new file mode 100644 index 0000000..6f305b6 --- /dev/null +++ b/.emacs.d/lisp/init-projectile.el @@ -0,0 +1,13 @@ +(use-package projectile :ensure t :defer t) + +(setq projectile-cache-file (expand-file-name ".cache/projectile" user-emacs-directory) + projectile-require-project-root nil) +(add-hook 'after-init-hook (lambda () (projectile-mode 1))) + +(with-eval-after-load 'evil + (evil-define-key 'normal projectile-mode-map + (kbd "p") 'projectile-command-map + (kbd "ff") 'projectile-find-file + (kbd "fr") 'projectile-ripgrep)) + +(provide 'init-projectile) -- cgit v1.2.3