Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 105

hs-minor-mode is a builtin minor mode to selectively hide or show (fold/unfold) parts of code.

1 vote
Accepted

How does this forward-sexp-function in hs-special-mode-alist work?

The #[...] is byte code, which comes from byte-compiling the Lisp source code. You need to use C-h f for the Python forward-sexp command, and then visit its Lisp definition (by clicking the file li …
Drew's user avatar
  • 79.1k
5 votes

Hide lines by regex

I agree with comments that suggest using flush-lines. I would likely use that in this case, especially since your use case is line-oriented. But if you want to make text that matches a regexp invi …
Drew's user avatar
  • 79.1k
1 vote

Hide only comments

This does not directly answer your question, but it might be an alternative to consider. Library hide-comnt.el is designed to let you hide or ignore comments. There are commands to hide, show, and …
Drew's user avatar
  • 79.1k
0 votes

How to customize the delimiter in the minor mode Hideshow for use with JSON data?

I may be misunderstanding what you're requesting. I tried using hide/show with some JSON code in js-mode as a quick experiment just now, and hs-minor-mode seemed to work OK. On the other hand, JSON d …
Drew's user avatar
  • 79.1k