1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Add hideshow bindings analogous to outline mode

* lisp/progmodes/hideshow.el (hs-minor-mode-map): Add bindings
analogous to outline mode bindings (bug#15324).

Copyright-paperwork-exempt: yes
This commit is contained in:
Susanne Oberhauser 2016-02-24 15:13:41 +11:00 committed by Lars Ingebrigtsen
parent 3c36fc13c9
commit bed990a747
2 changed files with 8 additions and 0 deletions

View File

@ -1547,6 +1547,10 @@ Use the INSIDE_EMACS environment variable instead.
mode to send the same escape sequences that xterm does. This makes
things like forward-word in readline work.
---
** hideshow mode got four key bindings that are analogous to outline
mode bindings: `C-c @ C-a', `C-c @ C-t', `C-c @ C-d', and `C-c @ C-e.'
+++
** `save-excursion' does not save&restore the mark any more.
Use `save-mark-and-excursion' if you want the old behavior.

View File

@ -351,6 +351,10 @@ Use the command `hs-minor-mode' to toggle or set this variable.")
(define-key map "\C-c@\C-\M-s" 'hs-show-all)
(define-key map "\C-c@\C-l" 'hs-hide-level)
(define-key map "\C-c@\C-c" 'hs-toggle-hiding)
(define-key map "\C-c@\C-a" 'hs-show-all)
(define-key map "\C-c@\C-t" 'hs-hide-all)
(define-key map "\C-c@\C-d" 'hs-hide-block)
(define-key map "\C-c@\C-e" 'hs-toggle-hiding)
(define-key map [(shift mouse-2)] 'hs-mouse-toggle-hiding)
map)
"Keymap for hideshow minor mode.")