emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gtags-mode 6e1d49975e 1/2: Add config lines to the Read


From: ELPA Syncer
Subject: [elpa] externals/gtags-mode 6e1d49975e 1/2: Add config lines to the Readme.
Date: Thu, 12 May 2022 21:57:37 -0400 (EDT)

branch: externals/gtags-mode
commit 6e1d49975e6980d6a47556c49bb00ff1774b83a4
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@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.
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]