branch: externals/gtags-mode commit 6e1d49975e6980d6a47556c49bb00ff1774b83a4 Author: Jimmy Aguilar Mena <kratsbinov...@gmail.com> Commit: Jimmy Aguilar Mena <kratsbinov...@gmail.com>
Add config lines to the Readme. --- Readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Readme.md b/Readme.md index 2c5533e466..6b30af0505 100644 --- a/Readme.md +++ b/Readme.md @@ -26,6 +26,20 @@ Usage Just load and enable the mode: `gtags-mode` or call it in a hook as usual. The mode is a global-minor-mode. +With `use-packages` + +```elisp +(use-package gtags-mode + :hook ((emacs-startup . gtags-mode))) +``` +or simply + +```elisp +(unless (fboundp 'gtags-mode) + (autoload #´gtags-mode "gtags-mode" nil t)) +(add-hook 'emacs-startup-hook #´gtags-mode) +``` + There are only 3 extra commands that the user may need to know: - **gtags-mode** : To enable the global minor mode. @@ -48,3 +62,4 @@ per individual hosts or users if needed. The custom variable **gtags-mode-lighter** can be used to change the default mode-line message to use when the mode is enabled. +