commit - adbe5db0b6ef603b570d64e1b90fef93015d7243
commit + a1679b13f3a0c984c6459b28a1c8515cac3b6466
blob - 262cab6d658dcefca909b00b130278064d733c37
blob + ed8aed528404e32be962d8afedf179b1cdb54cb1
--- README.md
+++ README.md
------
-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.
+To start using it make sure that `vc-got` is within your `load-path`
+and `Got` is in the `vc-handled-backends` list.
-```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")
-```
-
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
blob - 6c804eda8b3153ed762d4f11c3ac84ec97fe2b14
blob + 7bdf837ca976c9c546094b47082a345be53ffd57
--- vc-got.el
+++ vc-got.el
(setq found (match-string-no-properties 1)))
(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