]> code.delx.au - gnu-emacs-elpa/commitdiff
Rename try-complete-ggtags-tag to ggtags-try-complete-tag
authorLeo Liu <sdl.web@gmail.com>
Mon, 24 Mar 2014 08:38:04 +0000 (16:38 +0800)
committerLeo Liu <sdl.web@gmail.com>
Mon, 24 Mar 2014 08:41:00 +0000 (16:41 +0800)
Update README.rst.

README.rst
ggtags.el

index ae9766a1440dca8ee42d8ab61d19f66a381fd16b..6296c54aa5b4f9e8608e5c1d036c3f6a8df3fc87 100644 (file)
@@ -241,6 +241,23 @@ ggtags-browse-file-as-hypertext
    Use ``htags`` to generate HTML of the source tree. This allows
    browsing the porject in a browser with cross-references.
 
+Integration with other packages
++++++++++++++++++++++++++++++++
+
+* imenu
+
+  Emacs major modes usually have excellent support for ``imenu`` so
+  this is not enabled by default. To use:
+  ::
+
+    (setq-local imenu-create-index-function #'ggtags-build-imenu-index)
+
+* hippie-exp
+  ::
+
+     (setq-local hippie-expand-try-functions-list
+                 (cons 'ggtags-try-complete-tag hippie-expand-try-functions-list))
+
 Bugs
 ~~~~
 
index 64b46136abfa56ba66379006601bfc12e8098e4e..541025a22bac735c7ba61084dc80da19cea984a8 100644 (file)
--- a/ggtags.el
+++ b/ggtags.el
@@ -1831,7 +1831,7 @@ to nil disables displaying this information.")
 ;;; hippie-expand
 
 ;;;###autoload
-(defun try-complete-ggtags-tag (old)
+(defun ggtags-try-complete-tag (old)
   "A function suitable for `hippie-expand-try-functions-list'."
   (with-no-warnings                     ; to avoid loading hippie-exp
     (unless old