fix(docs): set mode in file-local vars

Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
This commit is contained in:
Henrik Lissner 2022-08-03 02:46:13 +02:00
parent 893434a5db
commit 7e400abdc0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
163 changed files with 166 additions and 3 deletions

View file

@ -40,7 +40,10 @@
(let ((beg (point-min))
end)
(org-with-wide-buffer
(goto-char (point-min))
(goto-char beg)
(when (looking-at-p "^# -\\*- ")
(goto-char (line-beginning-position 2))
(setq beg (point)))
(when (looking-at-p org-drawer-regexp)
(re-search-forward org-drawer-regexp nil t 2)
(goto-char (setq beg (1+ (line-end-position)))))