commit 52a18138203332f613100afe02fdf3587b147926 from: Omar Polo date: Mon Dec 07 08:53:46 2020 UTC 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. commit - 345290bf80a604ab857cfdc69abb39d97302bfdf commit + 52a18138203332f613100afe02fdf3587b147926 blob - 84830bd76296ec0e5644fbebc59e9b5059ed504b blob + d872ab2cc1eb30f16053257239bb042dee72517a --- README.md +++ README.md @@ -12,14 +12,14 @@ make sure that `vc-got` is within your `load-path`. Y 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 enoug :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")) ```