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:
parent
cf3c0d808d
commit
2f83757018
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue