tag:blogger.com,1999:blog-3992530807750384868.post2406012910111206758..comments2022-03-28T08:42:20.497+03:00Comments on emacs-fu: showing and hiding blocks of codeUnknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3992530807750384868.post-79913815798288732942011-11-08T08:08:39.150+02:002011-11-08T08:08:39.150+02:00@Anonymous: you can customize how it looks, see th...@Anonymous: you can customize how it looks, see the documentation for the variable hs-set-up-overlay. It does require some elisp though.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-91456903910930710842011-11-06T23:27:59.290+02:002011-11-06T23:27:59.290+02:00Thanks for the tip!
I am wonder if it's easy ...Thanks for the tip!<br /><br />I am wonder if it's easy or not to customize the color of the 3 dots ? I think that it would be better to view something that differs from three real dots, no?<br /><br />It should be cool also if we can start the buffer in hs-hide-all except for the comments of the code which are sometimes more important than the function definition itself, it is easy to customize ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-83986660137477821352011-03-11T09:17:24.432+02:002011-03-11T09:17:24.432+02:00Isn't this something similar to what we see in...Isn't this something similar to what we see in org-mode. The headings are shown and hidden in cyclic manner?<br /><br />I wonder if we could adapt your solution to a case where we could do the same in f90-mode or c-mode etc.Rajarshi Tiwarihttps://www.blogger.com/profile/12275785717034632098noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-2301979234629663702010-04-21T23:07:45.680+03:002010-04-21T23:07:45.680+03:00yeah, I tried to put my comments in a "block&...yeah, I tried to put my comments in a "block":<br /><br /># variable decls {<br /><br />my $x = 12;<br />my $y = 33;<br />my $z =33;<br /><br /># }<br /><br />but the mode tries to interpret comments as a block and expects a certain number of lines for the comments<br /><br />yes, i may have to goto folding mode, but I really liked this.Terrence Brannonhttps://www.blogger.com/profile/02568302240846756317noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-41963155522989860402010-04-21T22:20:15.901+03:002010-04-21T22:20:15.901+03:00@Terrence Brannon: well, hide-show is for hiding *...@Terrence Brannon: well, hide-show is for hiding *blocks*; for most languages, it would not make much sense to put the variables in a separate block, so hide-show is not a good solution for that.<br /><br />Instead, you could look at e.g, folding mode, but that requires specially formatted comments.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-58074360233663568452010-04-21T21:40:58.517+03:002010-04-21T21:40:58.517+03:00How would you take a few lines of variable declara...How would you take a few lines of variable declarations and turn that into a hideable block?Terrence Brannonhttps://www.blogger.com/profile/02568302240846756317noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-51355172490536576872008-12-28T22:10:00.000+02:002008-12-28T22:10:00.000+02:00@tkhwang: nice -- and i've enabled the trackback s...@tkhwang: nice -- and i've enabled the trackback support.djcbhttps://www.blogger.com/profile/15938154009846040711noreply@blogger.comtag:blogger.com,1999:blog-3992530807750384868.post-44395135777349221772008-12-28T03:12:00.000+02:002008-12-28T03:12:00.000+02:00Thanks for the great tip.I introduced this great t...Thanks for the great tip.<BR/><BR/>I introduced this great tip to Korean emacs user in myblog. <BR/>( http://tkhwang.tistory.com/35 )<BR/><BR/>It seems that you didn't open trackback. T_T;Anonymousnoreply@blogger.com