From 796fcfaa53bf1a7cc8eb73ff246ce3433178e541 Mon Sep 17 00:00:00 2001 From: nikolaiam Date: Tue, 10 Jan 2017 12:50:31 +0200 Subject: [PATCH] Hide PROPERTIES drawers in space-doc-mode Hide properties in space-doc-mode to allow the use of `CUSTOM_ID` tags in documentation for correct link exporting, as discussed in #8054, #8136 and #8138. Complementary the latter two PR:s. --- layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el b/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el index ecae339e6..bbb9f85b7 100644 --- a/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el +++ b/layers/+spacemacs/spacemacs-org/local/space-doc/space-doc.el @@ -304,6 +304,10 @@ This functions is aimed to be used with `spacemacs-space-doc-modificators'." "\\([ \t]*\\#\\+TITLE\\:\[ \t]*\\)" ;; Hide CAPTION logo meta line. "\\(\n.*\\#\\+CAPTION\\:.*\\)" + ;; Hide PROPERTIES lines. + "\\(\n.*\\:PROPERTIES\\:.*\\)" + "\\(\n.*\\:CUSTOM_ID\\:.*\\)" + "\\(\n.*\\:END\\:.*\\)" ;; Hide TOC-ORG tag and spaces before it. ;; Use modified `toc-org-toc-org-regexp' because ;; the original one matches whole string.