Next: , Previous: lid aliases, Up: lid invocation

5.2 GNU Emacs query interface

The idutils source distribution comes with a file idutils.el, which defines a GNU Emacs interface to gid. To install it, put idutils.el somewhere that Emacs will find it (i.e., in your load-path) and put

     (autoload 'gid "idutils" nil t)

in one of Emacs' initialization files, e.g., ~/.emacs. You will then be able to use M-x gid to run the command.

The gid function prompts you with the word around point. If you want to search for something else, simply delete the line and type the pattern of interest.

The function then runs the gid program in a ‘*compilation*’ buffer, so the normal next-error function can be used to visit all the places the identifier is found (see Compilation).