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 2418

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

0 votes

How to make hideshow (hs-toggle-hiding) delimit blank lines for comments?

(let ((bounds (my-comment-bounds))) (when bounds (narrow-to-region (car bounds) (cdr bounds)))) (funcall fn)))) (apply orig-fun args))) (with-eval-after-load 'hideshow
ideasman42's user avatar
  • 9,157
3 votes

Is it possible for hideshow to display both the start and trailing comment characters?

This can be done using advice on hs-make-overlay: (defun my-c-comment-end-skip-backward (pos) (cond ((and (eq (char-before pos) ?/) (eq (char-before (- pos 1)) ?*)) (- pos 2)) (t …
ideasman42's user avatar
  • 9,157