diff options
| author | Stefan Kangas | 2022-09-10 05:03:58 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-09-10 05:03:58 +0200 |
| commit | 1e021ac45b352bb99e14cc9b30fa1e73ad2c267f (patch) | |
| tree | 86984f04064bb12d6fa15922b48b3cee7a77f5c0 | |
| parent | 7008fa9fd95262032455bf397a1dc1c48b0c2758 (diff) | |
| download | emacs-1e021ac45b352bb99e14cc9b30fa1e73ad2c267f.tar.gz emacs-1e021ac45b352bb99e14cc9b30fa1e73ad2c267f.zip | |
Support outline-minor-mode in emacs-authors-mode
* lisp/textmodes/emacs-authors-mode.el (emacs-authors-mode):
Support and enable outline-minor-mode.
| -rw-r--r-- | lisp/textmodes/emacs-authors-mode.el | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lisp/textmodes/emacs-authors-mode.el b/lisp/textmodes/emacs-authors-mode.el index 866822c103d..3eba8e0e456 100644 --- a/lisp/textmodes/emacs-authors-mode.el +++ b/lisp/textmodes/emacs-authors-mode.el | |||
| @@ -130,7 +130,20 @@ Provides some basic font locking and not much else." | |||
| 130 | '(emacs-authors-mode-font-lock-keywords nil nil ((?_ . "w")))) | 130 | '(emacs-authors-mode-font-lock-keywords nil nil ((?_ . "w")))) |
| 131 | (setq font-lock-multiline nil) | 131 | (setq font-lock-multiline nil) |
| 132 | (setq imenu-generic-expression emacs-authors-imenu-generic-expression) | 132 | (setq imenu-generic-expression emacs-authors-imenu-generic-expression) |
| 133 | (emacs-etc--hide-local-variables)) | 133 | (emacs-etc--hide-local-variables) |
| 134 | (setq-local outline-regexp (rx (+ (not (any ":\n"))) ": " | ||
| 135 | (or "changed" "co-wrote" "wrote") " ") | ||
| 136 | outline-minor-mode-cycle t | ||
| 137 | outline-level | ||
| 138 | (lambda () | ||
| 139 | (if (looking-at (rx bol | ||
| 140 | (or (or " " | ||
| 141 | (seq "and " (or "co-wrote" | ||
| 142 | "changed"))) | ||
| 143 | eol))) | ||
| 144 | 2 | ||
| 145 | 1))) | ||
| 146 | (outline-minor-mode)) | ||
| 134 | 147 | ||
| 135 | (define-obsolete-face-alias 'etc-authors-default 'emacs-authors-default "29.1") | 148 | (define-obsolete-face-alias 'etc-authors-default 'emacs-authors-default "29.1") |
| 136 | (define-obsolete-face-alias 'etc-authors-author 'emacs-authors-author "29.1") | 149 | (define-obsolete-face-alias 'etc-authors-author 'emacs-authors-author "29.1") |