() C K Kashyap () Fri, 28 Mar 2014 14:36:47 +0530 I am trying to go-over a huge c++ file. In vim, I can collapse a huge set of lines by simply highlighting it an then doing a zf. I was wondering if I can do something similar in emacs - rather how I can do it in emacs. I tried hs-minor-mode but it appears to have pre-defined notions of "foldable" blocks. You can (ab)use ‘hs-hide-comment-region’, like so: (defun hs-hide-region (beg end) "Basically (hs-hide-comment-region BEG END), as a command." (interactive "r") (hs-hide-comment-region beg end)) Does that work for you? I tested lightly w/ Emacs Lisp only. (See also ‘hs-set-up-overlay’.) -- Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) => nil