leoliu pushed a commit to branch master in repository elpa. commit 1971c9fe5d0ea7c8ce0b50de7dfdb8478d5c3de8 Author: Leo Liu <sdl....@gmail.com> Date: Thu Feb 27 00:23:31 2014 +0800
New customizable variable ggtags-mode-sticky --- ggtags.el | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ggtags.el b/ggtags.el index d32ea6f..946684c 100644 --- a/ggtags.el +++ b/ggtags.el @@ -183,6 +183,12 @@ If an integer abbreviate only names longer than that number." :type 'hook :group 'ggtags) +(defcustom ggtags-mode-sticky t + "If non-nil enable Ggtags Mode in files visited." + :safe 'booleanp + :type 'boolean + :group 'ggtags) + (defcustom ggtags-mode-prefix-key "\C-c" "Key binding used for `ggtags-mode-prefix-map'. Users should change the value using `customize-variable' to @@ -1199,6 +1205,7 @@ Global and Emacs." (and (ggtags-project-update-mtime-maybe) (message "File `%s' is newer than GTAGS" (file-name-nondirectory buffer-file-name))) + (and ggtags-mode-sticky (ggtags-mode 1)) (ignore-errors (ggtags-ensure-global-buffer (unless (overlayp ggtags-global-line-overlay)