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

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

[elpa] externals/vc-got a1679b1 144/145: automatically register the back


From: ELPA Syncer
Subject: [elpa] externals/vc-got a1679b1 144/145: automatically register the backend and ignore the .got directory
Date: Thu, 9 Sep 2021 15:58:51 -0400 (EDT)

branch: externals/vc-got
commit a1679b13f3a0c984c6459b28a1c8515cac3b6466
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    automatically register the backend and ignore the .got directory
---
 README.md | 21 +++------------------
 vc-got.el | 11 +++++++++++
 2 files changed, 14 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index 262cab6..ed8aed5 100644
--- a/README.md
+++ b/README.md
@@ -5,30 +5,15 @@ Tree](http://gameoftrees.org/) version control system.
 
 ------
 
-To start using it, you need to add `Got` to `vc-handled-backends` and
-make sure that `vc-got` is within your `load-path`.  You shouldn't
-require the library.
-
-```emacs-lisp
-(add-to-list 'vc-handled-backends 'Got)
-```
-
-It's highly recommended to add `".got"` to the list of
-`vc-directory-exclusion-list`.
-
-```emacs-lisp
-(add-to-list 'vc-directory-exclusion-list ".got")
-```
+To start using it make sure that `vc-got` is within your `load-path`
+and `Got` is in the `vc-handled-backends` list.
 
 With `use-package` something like this should be enough:
 
 ```emacs-lisp
 (use-package vc-got
   :load-path "/path/to/vc-got/"
-  :defer t
-  :init
-  (add-to-list 'vc-handled-backends 'Got)
-  (add-to-list 'vc-directory-exclusion-list ".got"))
+  :defer t)
 ```
 
 ## Drawbacks
diff --git a/vc-got.el b/vc-got.el
index 6c804ed..7bdf837 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -938,5 +938,16 @@ true, NAME should create a new branch otherwise it will 
pop-up a
             (forward-line))
           found)))))
 
+
+
+;; Automatically register the backend and add ".got" to the exclusion
+;; list.
+
+;;;###autoload
+(add-to-list 'vc-handled-backends 'Got)
+
+;;;###autoload
+(add-to-list 'vc-directory-exclusion-list ".got")
+
 (provide 'vc-got)
 ;;; vc-got.el ends here



reply via email to

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