mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -330,11 +330,11 @@ controlled by `+doom-dashboard-pwd-policy'."
|
|||||||
"\n\n"))))
|
"\n\n"))))
|
||||||
`(("Homepage" "mark-github"
|
`(("Homepage" "mark-github"
|
||||||
(browse-url "https://github.com/hlissner/doom-emacs"))
|
(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)))
|
(file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir)))
|
||||||
'("Reload last session" "history"
|
'("Reload last session" "history"
|
||||||
(+workspace/load-session)))
|
(+workspace/load-session)))
|
||||||
,(when (featurep! :lang org)
|
,(when (fboundp 'org-agenda-list)
|
||||||
'("See agenda for this week" "calendar"
|
'("See agenda for this week" "calendar"
|
||||||
(call-interactively #'org-agenda-list)))
|
(call-interactively #'org-agenda-list)))
|
||||||
("Recently opened files" "file-text"
|
("Recently opened files" "file-text"
|
||||||
|
Reference in New Issue
Block a user