mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
* lisp/help.el (describe-bindings): Use the outline-default-rules feature.
Set buffer-local outline-default-state to 1, and outline-default-rules to match "Key translations", instead of searching and hiding this section explicitly.
This commit is contained in:
parent
5f9b587e80
commit
7a4f524314
@ -747,14 +747,15 @@ or a buffer name."
|
||||
(setq-local outline-level (lambda () 1))
|
||||
(setq-local outline-minor-mode-cycle t
|
||||
outline-minor-mode-highlight t
|
||||
outline-minor-mode-use-buttons 'insert)
|
||||
outline-minor-mode-use-buttons 'insert
|
||||
;; Hide the longest body.
|
||||
outline-default-state 1
|
||||
outline-default-rules
|
||||
'((match-regexp . "Key translations")))
|
||||
(outline-minor-mode 1)
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(let ((inhibit-read-only t))
|
||||
;; Hide the longest body.
|
||||
(when (re-search-forward "Key translations" nil t)
|
||||
(outline-hide-subtree))
|
||||
;; Hide ^Ls.
|
||||
(while (search-forward "\n\f\n" nil t)
|
||||
(put-text-property (1+ (match-beginning 0)) (1- (match-end 0))
|
||||
|
Loading…
Reference in New Issue
Block a user