From 0097d1f3e22565ffb6db689c06ee2f9610cd45d0 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 12 Mar 2022 23:11:30 +0800 Subject: Refactor evil config (emacs) --- .emacs.d/lisp/init-misc.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.emacs.d/lisp/init-misc.el') diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index 0e34af4..35e9756 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -105,15 +105,17 @@ (use-package projectile :init - (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 (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)) + (use-package rg :ensure t :commands (rg rg-menu)) -- cgit v1.2.3