Useful EMACS programming tips

Despite my many attempts at using an integrated IDE, most recently IntelliJ IDEA, I always end up going back to EMACS. The numerous generic utilities that have been developed over decades allows one to mimic just about any feature of an integrated IDE in EMACS. Furthermore, those features (in EMACS) are consistent across programming languages. Learn once, use everywhere. If you can’t find something, write the elisp code yourself and bind to a button. Here are some notes to remind me of what is available.

  • M-x occur to create a new buffer showing the occurences of a term.

  • M-3 Ctr-x $ fold code (M-[1|2|3] depending on the level of folding desired, Ctrl-x $ to undo

  • M-x imenu to jump to a method

Share