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.
This commit is contained in:
Lars Ingebrigtsen 2021-08-10 18:21:15 +02:00
parent a6bd049031
commit a8e89964f3
2 changed files with 2 additions and 2 deletions

View file

@ -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'.

View 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