[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
- [elpa] externals/vc-got 61b9a83 124/145: add the keyword `tools', like in vc-git, (continued)
- [elpa] externals/vc-got 61b9a83 124/145: add the keyword `tools', like in vc-git, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 00eb9c8 127/145: add `lint' target, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 95a78ec 134/145: missing require and split setq-locals, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 4b3c0c6 132/145: add Timo as author, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 3ec8a8b 130/145: chores, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 5154c5c 136/145: switch to `got send' for pushing, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 3dcaa71 139/145: improve tag creation buffer, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got adbe5db 143/145: move the copyright to the FSF, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 2a50da6 140/145: push doesn't use git anymore, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 961d35b 142/145: fix find-revision, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got a1679b1 144/145: automatically register the backend and ignore the .got directory,
ELPA Syncer <=
- [elpa] externals/vc-got 8fc127f 145/145: bump version, ELPA Syncer, 2021/09/09
- [elpa] externals/vc-got 5509116 018/145: implement vc-got-find-ignore-file, ELPA Syncer, 2021/09/09