From 2f83757018deb2b1994880feb3ba9f4dfbf9d844 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 May 2018 00:54:05 +0200 Subject: [PATCH] ui/doom-dashboard: more robust feature detection In case you aren't using those modules, but have other means of loading those packages. --- modules/ui/doom-dashboard/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index acde3ad25..a446f2d8a 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -330,11 +330,11 @@ controlled by `+doom-dashboard-pwd-policy'." "\n\n")))) `(("Homepage" "mark-github" (browse-url "https://github.com/hlissner/doom-emacs")) - ,(when (and (featurep! :feature workspaces) + ,(when (and (bound-and-true-p persp-mode) (file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir))) '("Reload last session" "history" (+workspace/load-session))) - ,(when (featurep! :lang org) + ,(when (fboundp 'org-agenda-list) '("See agenda for this week" "calendar" (call-interactively #'org-agenda-list))) ("Recently opened files" "file-text"