emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/sxhkdrc-mode 10517efeaa 2/2: Add outline-regexp (also c


From: ELPA Syncer
Subject: [elpa] externals/sxhkdrc-mode 10517efeaa 2/2: Add outline-regexp (also covers outline-minor-mode)
Date: Fri, 10 Feb 2023 02:58:10 -0500 (EST)

branch: externals/sxhkdrc-mode
commit 10517efeaa5a727fd3cd7f4d1f4a8e61ec495d59
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add outline-regexp (also covers outline-minor-mode)
---
 sxhkdrc-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sxhkdrc-mode.el b/sxhkdrc-mode.el
index cd42aa64b4..02ee467bec 100644
--- a/sxhkdrc-mode.el
+++ b/sxhkdrc-mode.el
@@ -52,6 +52,7 @@ Space Partitioning Window Manager (BSPWM)."
                       "mod1" "mod2" "mod3" "mod4" "mod5"))
     (key-generic . "^\\({.*?}\\|\\<.*?\\>\\)")
     (key-line . "^\\({.*?}\\|\\<.*?\\>\\).*$")
+    (outline . "^\\(\\({.*?}\\|\\<.*?\\>\\)\\|###+ \\)")
     (comment . "^\\([\s\t]+\\)?#.*$")
     (command . "^[\s\t]+\\([;]\\)?\\(\\_<.*?\\_>\\)")
     (command-line . "^[\s\t]+\\([;]\\)?\\(\\_<.*?\\_>\\).*$")
@@ -154,6 +155,7 @@ key chord chain (demarcated by a colon or semicolon)."
   (setq-local indent-line-function 'sxhkdrc-mode-indent-line
               comment-start "# "
               comment-start-skip "#+[\t\s]*"
+              outline-regexp (alist-get 'outline sxhkdrc-mode-syntax)
               imenu-generic-expression `(("Command" ,(alist-get 'command-line 
sxhkdrc-mode-syntax) 0)
                                          ("Key" ,(alist-get 'key-line 
sxhkdrc-mode-syntax) 0)))
   (setq font-lock-defaults '(sxhkdrc-mode-font-lock-keywords)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]