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
This commit is contained in:
Gerry Agbobada 2019-10-26 10:15:32 +02:00 committed by Henrik Lissner
parent 68f2ac4d8c
commit b1e8ee7175

View file

@ -67,9 +67,8 @@ Possible values:
:icon (all-the-icons-octicon "tools" :face 'font-lock-keyword-face) :icon (all-the-icons-octicon "tools" :face 'font-lock-keyword-face)
:when (file-directory-p doom-private-dir) :when (file-directory-p doom-private-dir)
:action doom/open-private-config) :action doom/open-private-config)
("Open user manual" ("Search Documentation"
:icon (all-the-icons-octicon "book" :face 'font-lock-keyword-face) :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)) :action doom/help-search))
"An alist of menu buttons used by `doom-dashboard-widget-shortmenu'. Each "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 element is a cons cell (LABEL . PLIST). LABEL is a string to display after the