emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master bed990a: Add hideshow bindings analogous to outline


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master bed990a: Add hideshow bindings analogous to outline mode
Date: Wed, 24 Feb 2016 04:14:46 +0000

branch: master
commit bed990a747b0cc6d9d91ca08afc84473642f8cb3
Author: Susanne Oberhauser <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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
---
 etc/NEWS                   |    4 ++++
 lisp/progmodes/hideshow.el |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index ce84b48..679532b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index e546000..cabdf45 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -351,6 +351,10 @@ Use the command `hs-minor-mode' to toggle or set this 
variable.")
     (define-key map "address@hidden"    'hs-show-all)
     (define-key map "address@hidden"         'hs-hide-level)
     (define-key map "address@hidden"         'hs-toggle-hiding)
+    (define-key map "address@hidden"       'hs-show-all)
+    (define-key map "address@hidden"       'hs-hide-all)
+    (define-key map "address@hidden"       'hs-hide-block)
+    (define-key map "address@hidden"       'hs-toggle-hiding)
     (define-key map [(shift mouse-2)] 'hs-mouse-toggle-hiding)
     map)
   "Keymap for hideshow minor mode.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]