Discussion:
toggle comment display
(too old to reply)
iaw4
2012-09-08 04:56:33 UTC
Permalink
is there a submode for latex and perl that can hide and unhide comments ( latex %, perl # and pod), so that I can see the comments when I want to see them, but not clutter up the display otherwise?

(slashdot had a story on this today.)

pointers appreciated.
RebelCanadian
2012-09-08 07:08:27 UTC
Permalink
Post by iaw4
is there a submode for latex and perl that can hide and unhide comments ( latex %, perl # and pod), so that I can see the comments when I want to see them, but not clutter up the display otherwise?
(slashdot had a story on this today.)
pointers appreciated.
This would be pretty awesome, especially if it was generic enough to
work with any major-mode.
Sivaram Neelakantan
2012-09-09 18:10:10 UTC
Permalink
Post by RebelCanadian
Post by iaw4
is there a submode for latex and perl that can hide and unhide
comments ( latex %, perl # and pod), so that I can see the comments
when I want to see them, but not clutter up the display otherwise?
(slashdot had a story on this today.)
pointers appreciated.
This would be pretty awesome, especially if it was generic enough to
work with any major-mode.
Does this help?

http://emacswiki.org/emacs/HideShow

sivaram
--

--- Posted via news://freenews.netfront.net/ - Complaints to ***@netfront.net ---
iaw4
2012-09-12 03:08:29 UTC
Permalink
Post by Sivaram Neelakantan
Does this help?
it probably can help an expert, but not someone of my skill level. too much detail. I use a variety of emacs modes (primarily html, auctex, perl, R [ess]). perl and R use '#', latex uses '%'. html uses <!-- --> and perl also has multiline comments with pod. comments are usually colored, so they are recognized by my emacs modes.

I would love to bind toggle-all-comments to F10, and have all multi-line comment views collapse or uncollapse when I hit F10. that's it. as simple as possible.

possible?

/iaw

Loading...