summaryrefslogtreecommitdiff
path: root/lisp/progmodes/hideshow.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/hideshow.el')
-rw-r--r--lisp/progmodes/hideshow.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el
index 1d62bb58750..4cfcd3d09a3 100644
--- a/lisp/progmodes/hideshow.el
+++ b/lisp/progmodes/hideshow.el
@@ -97,7 +97,8 @@
;; nested level in addition to the top-level:
;;
;; (defun ttn-hs-hide-level-1 ()
-;; (hs-hide-level 1)
+;; (when (hs-looking-at-block-start-p)
+;; (hs-hide-level 1))
;; (forward-sexp 1))
;; (setq hs-hide-all-non-comment-function 'ttn-hs-hide-level-1)
;;