From 243a3a84a81e0cfdb6e4c7e26f6ebabc396a6197 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 19 May 2019 19:02:17 -0400 Subject: [PATCH] Add doom/help-news-search command (SPC h d N) --- core/autoload/help.el | 10 ++++++++++ modules/config/default/config.el | 1 + 2 files changed, 11 insertions(+) diff --git a/core/autoload/help.el b/core/autoload/help.el index ae4d8dbdd..2a2d014bf 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -189,6 +189,16 @@ selection of all minor-modes, active or not." "../modules/README.org") 2 t initial-input)) +;;;###autoload +(defun doom/help-news-search (&optional initial-input) + "Search headlines in Doom's newsletters." + (interactive) + (doom-completing-read-org-headings + "Find in News: " (doom-files-in (expand-file-name "news" doom-docs-dir) + :match "/[0-9]" + :relative-to doom-docs-dir) + nil t initial-input)) + ;;;###autoload (defun doom/help-faq (&optional initial-input) "Search Doom's FAQ and jump to a question." diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 959bdcdbc..5a99efda2 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -224,6 +224,7 @@ "dh" #'doom/help "dm" #'doom/help-modules "dn" #'doom/help-news + "dN" #'doom/help-news-search "dp" #'doom/help-packages "dc" #'doom/help-package-config "ds" #'doom/sandbox