ui/doom-dashboard: more robust feature detection

In case you aren't using those modules, but have other means of loading
those packages.
This commit is contained in:
Henrik Lissner 2018-05-25 00:54:05 +02:00
parent cf3c0d808d
commit 2f83757018
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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"