[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/logos ec947561f7 1/4: Add markdown-mode to logos-outlin
From: |
ELPA Syncer |
Subject: |
[elpa] externals/logos ec947561f7 1/4: Add markdown-mode to logos-outline-regexp-alist |
Date: |
Fri, 6 May 2022 01:57:40 -0400 (EDT) |
branch: externals/logos
commit ec947561f75ed220671864c3f140348a0f3135a1
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add markdown-mode to logos-outline-regexp-alist
---
README.org | 1 +
logos.el | 1 +
2 files changed, 2 insertions(+)
diff --git a/README.org b/README.org
index 2d74fbd5e1..8c93737b8a 100644
--- a/README.org
+++ b/README.org
@@ -209,6 +209,7 @@ changes out-of-the-box
([[#h:2bb57369-352a-43bf-afe3-0bed2fcc7359][Extra tweaks]
(setq logos-outline-regexp-alist
`((emacs-lisp-mode . "^;;;+ ")
(org-mode . "^\\*+ +")
+ (markdown-mode . "^\\#+ +")
(t . ,(or outline-regexp logos--page-delimiter))))
;; These apply when `logos-focus-mode' is enabled. Their value is
diff --git a/logos.el b/logos.el
index eb4ba0588f..126ff24a51 100644
--- a/logos.el
+++ b/logos.el
@@ -86,6 +86,7 @@ When this variable is nil, pages are demarcated by the
(defcustom logos-outline-regexp-alist ; TODO 2022-03-02: more sensible
outlines?
`((emacs-lisp-mode . "^;;;+ ")
(org-mode . "^\\*+ +")
+ (markdown-mode . "^\\#+ +")
(t . ,(or outline-regexp logos--page-delimiter)))
"Alist of major mode and regular expression of the outline.
Only used when `logos-outlines-are-pages' is non-nil.