Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unless you have spaghetti code or have built an abstraction tower, a variable is probably scoped/namespaced neatly. Often, it's just a quick grep to find it. In Emacs, if a variable is only used within a file, you can just `M-x occur` and do the editing there. Where those tools fail, is when you have ecosystems that tries to be clever (JavaScript with its transpilers, Java with its annotations)


Check out 'M-x multi-occur' -- same as 'occur', but scans all of the frame's open buffers. So useful I aliased it to 'M-x mo'


Thanks! So I learned something new about Emacs again. It never ends.

Aliasing something to make it easier to M-x sounds like the next step after running out of letters to use with C-c? I have not reached that point yet, but that was another thing I never considered that could be useful to remember.


> Unless you have

That is a big "unless". We aren't all working on pristine code written to high standards…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: