emacs-diffs
[Top][All Lists]
Advanced

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

master a8e8996: Use ### for outline headings in shell-script-mode


From: Lars Ingebrigtsen
Subject: master a8e8996: Use ### for outline headings in shell-script-mode
Date: Tue, 10 Aug 2021 12:21:38 -0400 (EDT)

branch: master
commit a8e89964f3553f40b8807617c3b181f42cd22fd9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Use ### for outline headings in shell-script-mode
    
    * lisp/progmodes/sh-script.el (sh-mode): Use ### for outline headings.
    This aligns it more with emacs-lisp-mode headings.
---
 etc/NEWS                    | 2 +-
 lisp/progmodes/sh-script.el | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index b63d10f..3560c9d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2400,7 +2400,7 @@ This command, called interactively, toggles the local 
value of
 
 ---
 *** 'shell-script-mode' now supports 'outline-minor-mode'.
-The outline headings have lines that start with "##".
+The outline headings have lines that start with "###".
 
 +++
 *** New command 'revert-buffer-quick'.
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 8fcb311..b667473 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1532,7 +1532,7 @@ with your script for an edit-interpret-debug cycle."
   (setq-local add-log-current-defun-function #'sh-current-defun-name)
   (add-hook 'completion-at-point-functions
             #'sh-completion-at-point-function nil t)
-  (setq-local outline-regexp "##")
+  (setq-local outline-regexp "###")
   ;; Parse or insert magic number for exec, and set all variables depending
   ;; on the shell thus determined.
   (sh-set-shell



reply via email to

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