[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Constructing outline-regexp to include title text
From: |
uzibalqa |
Subject: |
Constructing outline-regexp to include title text |
Date: |
Thu, 15 Jun 2023 19:32:39 +0000 |
I am changing the recognition of headings in outline-minor-mode. Currently
only the heading
level is described.
;;; MN
where N is the level number.
I want to add the possibility of a heading title text and need to change
outline-minor-mode.
;;; M1 This is a title for Level 1.
;;; M2 This is a title for Level 2.
(defvar elisp-hglevels
'( (";;; H1" . 1) (";;; H2" . 2) (";;; H3" . 3) (";;; H4" . 4)
(";;; H5" . 5) (";;; H6" . 6) (";;; H7" . 7) (";;; H8" . 8) )
"Set outline levels for for command shell outline headings.")
(defun elisp-outl ()
"Set bash headings for outline mode."
(interactive)
(setq outline-regexp
(concat (regexp-opt (mapcar 'car elisp-hglevels)) "\\>"))
(setq outline-heading-alist elisp-hglevels) )
- Constructing outline-regexp to include title text,
uzibalqa <=