From d80790686bc7f38f0487944bc7549f0c922c822f Mon Sep 17 00:00:00 2001 From: Jason Dufair Date: Mon, 4 Mar 2019 10:57:09 -0500 Subject: [PATCH] No need to launch 'projectile-mode --- dashboard-widgets.el | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index 8a9e9e18..190c01d1 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -331,18 +331,16 @@ WIDGET-PARAMS are passed to the \"widget-create\" function." ;; (defun dashboard-insert-projects (list-size) "Add the list of LIST-SIZE items of projects." - (projectile-mode) - (if (bound-and-true-p projectile-mode) - (progn - (projectile-load-known-projects) - (dashboard-insert-section - "Projects:" - (dashboard-subseq (projectile-relevant-known-projects) - 0 list-size) - list-size - "p" - `(lambda (&rest ignore) (projectile-switch-project-by-name ,el)) - (abbreviate-file-name el))))) + (require 'projectile) + (projectile-load-known-projects) + (dashboard-insert-section + "Projects:" + (dashboard-subseq (projectile-relevant-known-projects) + 0 list-size) + list-size + "p" + `(lambda (&rest ignore) (projectile-switch-project-by-name ,el)) + (abbreviate-file-name el))) ;; ;; Org Agenda