From b1e8ee7175f9bcffa94d36935d884062f443bc0f Mon Sep 17 00:00:00 2001 From: Gerry Agbobada <10496163+gagbo@users.noreply.github.com> Date: Sat, 26 Oct 2019 10:15:32 +0200 Subject: [PATCH] Add 'Search Documentation' button to dashboard (#1955) * Add an FAQ action to doom-dashboard * Separate faq and user manual This is necessary until I can dispatch properly the (file-exists-p) conditions in the :action part of the variable. The issue is that the value in :action needs to be a symbol (symbolp) and the (if COND THEN ELSE) form does not match this. * Use doom/help-search if (or faq.org manual.org) Since the function searches through the (in-progress) manual and faq * Remove :when condition from Search Documentation This condition is unnecessary since doom/help-search now always at least lists the modules from doom/help-modules --- modules/ui/doom-dashboard/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index 9b5f591aa..5aa448a07 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -67,9 +67,8 @@ Possible values: :icon (all-the-icons-octicon "tools" :face 'font-lock-keyword-face) :when (file-directory-p doom-private-dir) :action doom/open-private-config) - ("Open user manual" + ("Search Documentation" :icon (all-the-icons-octicon "book" :face 'font-lock-keyword-face) - :when (file-exists-p (expand-file-name "index.org" doom-docs-dir)) :action doom/help-search)) "An alist of menu buttons used by `doom-dashboard-widget-shortmenu'. Each element is a cons cell (LABEL . PLIST). LABEL is a string to display after the