]> code.delx.au - gnu-emacs-elpa/commitdiff
Update README.rst
authorLeo Liu <sdl.web@gmail.com>
Sat, 2 Feb 2013 09:54:42 +0000 (17:54 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 2 Feb 2013 12:12:09 +0000 (20:12 +0800)
README.rst

index 64182539823be82b723047f480ba69e3455b4b6b..efe01d41c24e7aa7bf3507784fe928e08fa1dbac 100644 (file)
@@ -6,9 +6,10 @@ A package for working with `GNU Global
 <http://www.gnu.org/software/global>`_ source tagging system inside
 Emacs.
 
-This package is part of `GNU ELPA <http://elpa.gnu.org>`_.
+This package is part of `GNU ELPA <http://elpa.gnu.org>`_
+(``M-x list-packages``).
 
-Feature requests and bug reports are welcome. Thanks.
+Patches, feature requests and bug reports are welcome. Thanks.
 
 Features
 ~~~~~~~~
@@ -23,18 +24,38 @@ Screenshot
 ~~~~~~~~~~
 
 .. figure:: http://i.imgur.com/d430rmm.png
-   :width: 400px
+   :width: 500px
    :target: http://i.imgur.com/d430rmm.png
    :alt: ggtags.png
 
-Install
-~~~~~~~
+Tutorial
+~~~~~~~~
+
+Type ``M-x ggtags-mode`` to enable the minor mode, or as usual enable
+it in your desired major mode hooks. When the mode is on the symbol at
+point is underlined if it is a valid tag.
+
+``M-.`` finds definitions or references according to the tag at point,
+i.e. if point is at a definition tag find references and vice versa.
+``C-u M-.`` is verbose and will ask you the name - with completion
+- and the type of tag to search.
+
+If multiple matches are found, navigation mode is entered. In this
+mode, ``M-n`` and ``M-p`` moves to next and previous match, ``M-}``
+and ``M-{`` to next and previous file respectively. ``M-o`` toggles
+between full and abbreviated displays of file names in the auxiliary
+popup window. When you locate the right match, press RET to finish
+which hides the auxiliary window and exits navigation mode. You can
+resume the search using ``M-,``. To abort the search press ``M-*``.
 
-Place ``ggtags.el`` in the ``load-path`` and add to your init file::
+Normally after a few searches a dozen buffers are created visiting
+files tracked by GNU Global. ``C-c M-k`` helps clean them up.
 
-  (require 'ggtags)
+Development
+~~~~~~~~~~~
 
-Use ``M-x ggtags-mode`` to enable the mode and ``M-.`` to find tags.
+The goal is to make working with GNU Global in Emacs as effortless and
+intuitively as possible.
 
 Bugs
 ~~~~