From 36081c6ca6b25fd9c49c259d91ada5180d78a580 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 01:12:32 +0800 Subject: Drop use-package at all (emacs) --- .emacs.d/lisp/init-projectile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.emacs.d/lisp/init-projectile.el') diff --git a/.emacs.d/lisp/init-projectile.el b/.emacs.d/lisp/init-projectile.el index 6f305b6..a1bb2fe 100644 --- a/.emacs.d/lisp/init-projectile.el +++ b/.emacs.d/lisp/init-projectile.el @@ -1,8 +1,8 @@ -(use-package projectile :ensure t :defer t) +(when (gx/maybe-require-package 'projectile) + (add-hook 'after-init-hook (lambda () (projectile-mode 1)))) (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 -- cgit v1.2.3