refactor(file-templates): doom readme templates
Including readme template for categories.
This commit is contained in:
parent
df62fcba26
commit
0aad1399cc
7 changed files with 229 additions and 58 deletions
|
@ -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))
|
||||
|
|
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue