Re:The ups of downs of porting 50k lines of C++ to Go
by logicchains on Saturday March 07, 2015 @06:46AM
(#9161627)
A good place to start is http://www.emacswiki.org/emacs/RegularExpression, followed by https://www.gnu.org/software/emacs/manual/html_node/emacs/Re... and https://www.gnu.org/software/emacs/manual/html_node/emacs/Re.... They're more references than tutorials though; unfortunately I'm not aware of any comprehensive tutorials on the subject.
Re:The ups of downs of porting 50k lines of C++ to Go
by jqgatsby on Saturday March 07, 2015 @07:16AM
(#9161667)
If you are already using emacs, I recommend setting regular expression find/replace as your default search mode. Ctrl-s, etc, so it becomes second nature.
Re:The ups of downs of porting 50k lines of C++ to Go
by Dewie on Saturday March 07, 2015 @07:46AM
(#9161709)
Another way to use search in Emacs is to go to a place that you need to edit/insert text. Instead of using the movement commands or the mouse, use forward or backwards search to search for the point you need to be at: like "(str" in "(String s) ...".
I don't know if it is faster for me. But it can feel more ergonomic, since you don't have to make so much effort into going to a specific point. I'm getting better at it, though: maybe soon it will become second-nature.
Re:The ups of downs of porting 50k lines of C++ to Go
by lclarkmichalek on Saturday March 07, 2015 @08:08AM
(#9161747)
That way also makes writing kbd macros a lot easier
It would be really wonderful to have a series of tutorials on this subject. It might be a good reason for me to learn to use Emacs, anyway ..