From e6e1282346273010e7fb250fbbd3d76c3ae99658 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 12 Jan 2018 18:41:06 -0500 Subject: [PATCH] ui/doom-dashboard: fix recentf, project & bookmark buttons When none of these buttons' commands were remapped, you'd get a commandp nil error. --- modules/ui/doom-dashboard/config.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 92a20321f..a9058858e 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -274,10 +274,13 @@ controlled by `+doom-dashboard-pwd-policy'." '("See agenda for this week" "calendar" (call-interactively 'org-agenda-list))) ("Recently opened files" "file-text" - (call-interactively (command-remapping 'recentf-open-files))) + (call-interactively (or (command-remapping #'recentf-open-files) + #'recentf-open-files))) ("Open project" "briefcase" - (call-interactively (command-remapping 'projectile-switch-project))) + (call-interactively (or (command-remapping #'projectile-switch-project) + #'projectile-switch-project))) ("Jump to bookmark" "bookmark" - (call-interactively (command-remapping 'bookmark-jump))) + (call-interactively (or (command-remapping #'bookmark-jump) + #'bookmark-jump))) ("Edit emacs.d" "tools" (find-file (expand-file-name "init.el" doom-emacs-dir)))))))