]> git.eshelyaron.com Git - emacs.git/commitdiff
Use ### for outline headings in shell-script-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 10 Aug 2021 16:21:15 +0000 (18:21 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 10 Aug 2021 16:21:15 +0000 (18:21 +0200)
* lisp/progmodes/sh-script.el (sh-mode): Use ### for outline headings.
This aligns it more with emacs-lisp-mode headings.

etc/NEWS
lisp/progmodes/sh-script.el

index b63d10fd978848814cffcdf4669033070571f97f..3560c9d34e82dfe61faf01ffe086032eb3598a53 100644 (file)
--- 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'.
index 8fcb311ff1fe487af182aed1f1855a5c779b86fc..b6674731ddf7ce131ddd91c7ace918c1be2c106b 100644 (file)
@@ -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