refactor(file-templates): doom readme templates

Including readme template for categories.
This commit is contained in:
Henrik Lissner 2021-10-12 21:26:05 +02:00 committed by Henrik Lissner
parent df62fcba26
commit 0aad1399cc
7 changed files with 229 additions and 58 deletions

View file

@ -95,7 +95,7 @@ if it's callable, `apropos' otherwise."
(with-demoted-errors "%s"
(re-search-forward
(if (caddr module)
"\\* Module Flags$"
"\\* Module flags$"
"\\* Description$"))
(when (caddr module)
(re-search-forward (format "=\\%s=" (caddr module))

View file

@ -195,9 +195,9 @@ exist, and `org-link' otherwise."
(user-error "Can't find Doom module '%s'" link))))
(when flag
(goto-char (point-min))
(and (re-search-forward "^\\*+ \\(?:TODO \\)?Module Flags")
(re-search-forward (format "^\\s-*- %s :: "
(regexp-quote (symbol-name flag)))
(and (re-search-forward "^\\*+ \\(?:TODO \\)?Module flags")
(re-search-forward (format "^\\s-*- \\+%s ::[ \n]"
(substring (symbol-name flag) 1))
(save-excursion (org-get-next-sibling)
(point)))
(recenter)))))