Open Files in Emacs With Power
Emacs has a lot of power to open files. Once in the program, you can open multiple files with one operation, use environment variables, and other techniques not available in many other editors.
Here’s a list of cool things you can do:
- Use environment variables defined in the invoking shell. E.g. ‘$SDK_PATH/include/foo.h’
- Use a glob to open multiple files at once. E.g. ‘*_mux.h’ or for more fun ‘board/*/*_mux.h’
- Use Tramp to open files on remote systems. E.g. ‘user@host:filename’
- Use gtags to find a file to open. Gtags searches all file names for a pattern and either opens a “hit” or presents you with a list to choose from. E.g. gtags-find-file ‘bar’