Add doom/help-news-search command (SPC h d N)

This commit is contained in:
Henrik Lissner 2019-05-19 19:02:17 -04:00
parent 8aa6273dcf
commit 243a3a84a8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 0 deletions

View file

@ -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."

View file

@ -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