branch: externals/org-modern
commit 6445696af589ee4d53724f071a6f2f26471245d5
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>
Separate begin-for use with headline watch
---
org-modern-indent.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/org-modern-indent.el b/org-modern-indent.el
index bf1bbb7e2f..83567f1418 100644
--- a/org-modern-indent.el
+++ b/org-modern-indent.el
@@ -47,8 +47,10 @@
(defconst org-modern-indent-guide (propertize "│" 'face
'org-modern-bracket-line))
(defconst org-modern-indent-end (propertize "╰" 'face
'org-modern-bracket-line))
+(defvar org-modern-indent-begin-re
+ "\\([ \t]*\\)\\(#\\+\\)\\(?:begin\\|BEGIN\\)_\\S-")
(defvar org-modern-indent--font-lock-keywords
- `(("^\\([ \t]*\\)\\(#\\+\\)\\(?:begin\\|BEGIN\\)_\\S-"
+ `((,(concat "^" org-modern-indent-begin-re)
(0 (org-modern-indent--block-bracket)))))
(defun org-modern-indent--block-bracket ()