branch: externals/vc-got commit 52a18138203332f613100afe02fdf3587b147926 Author: Omar Polo <o...@omarpolo.com> Commit: Omar Polo <o...@omarpolo.com>
add-to-list is better at strings than cl-pushnew cl-pushnew can add multiple copies of the same string to a list, and add-to-list is also probably more idiomatic in elisp. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 84830bd..d872ab2 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,14 @@ make sure that `vc-got` is within your `load-path`. You shouldn't require the library. ```emacs-lisp -(cl-pushnew 'Got vc-handled-backends) +(add-to-list 'vc-handled-backends 'Got) ``` It's highly recommended to add `".got"` to the list of `vc-directory-exclusion-list`. ```emacs-lisp -(cl-pushnew ".got" vc-directory-exclusion-list) +(add-to-list 'vc-directory-exclusion-list ".got") ``` With `use-package` something like this should be enough: @@ -29,6 +29,6 @@ With `use-package` something like this should be enough: :load-path "/path/to/vc-got/" :defer t :init - (cl-pushnew 'Got vc-handled-backends) - (cl-pushnew ".got" vc-directory-exclusion-list)) + (add-to-list 'vc-handled-backends 'Got) + (add-to-list 'vc-directory-exclusion-list ".got")) ```