The single most useful Emacs feature
21–30 of 112 posts
Re: The single most useful Emacs feature
#22Good god. I've been using emacs since 1981 and this thread is teaching me things.
Re: The single most useful Emacs feature
#23It's nothing unique to Emacs, but I get a lot of use out of M-q.
Not sure why you were downvoted.
Re: The single most useful Emacs feature
#24Also, emacsclient.
Re: The single most useful Emacs feature
#25Re: The single most useful Emacs feature
#26hi-lock-mode! Hi-lock lets you specify regexes to highlight anywhere in a file; it's like domain-specific font-lock. It's astoundingly useful in code review. For instance, given a giant blob of J2EE web handler code, I can eyeball one handler, recognize the annotation mapping the method to URL syntax, and then punch in a hi-lock regex to light up similar annotations everywhere in the file, then glance through the who…
Occur also works nicely for this use case, as you can visit each place in order with C-x `. Actually, something like eproject-grep is even nicer, because you can visit every occurrence in the project that way.
Instead, I can either set myself up to look for patterns of colors (function --- red line --- shit no blue line!), or set myself to serendipitously discover things as I actually do read code.
I have never, ever, ever, ever figured out an Emacs "grep" that I liked enough to stop using find/xargs/grep from eshell.
Re: The single most useful Emacs feature
#27It's nothing unique to Emacs, but I get a lot of use out of M-q.
Re: The single most useful Emacs feature
#28Good god. I've been using emacs since 1981 and this thread is teaching me things.
My favorite Emacs feature that I've learned about in the past year is Org-Mode. I use it now for just about everything.
Re: The single most useful Emacs feature
#29Re: The single most useful Emacs feature
#30hi-lock-mode! Hi-lock lets you specify regexes to highlight anywhere in a file; it's like domain-specific font-lock. It's astoundingly useful in code review. For instance, given a giant blob of J2EE web handler code, I can eyeball one handler, recognize the annotation mapping the method to URL syntax, and then punch in a hi-lock regex to light up similar annotations everywhere in the file, then glance through the who…
http://www.vim.org/scripts/script.php?script_id=2666
r (regex) to add matches to the set of highlighted groups.