Home > Emacs Tips > Open Files in Emacs With Power

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’
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: