diff options
| author | Omar Antolín <omar.antolin@gmail.com> | 2020-04-13 22:36:30 -0500 |
|---|---|---|
| committer | Omar Antolín <omar.antolin@gmail.com> | 2020-04-13 22:36:30 -0500 |
| commit | 7c83d76f16b609a61e38f2287e8f2627e3345daa (patch) | |
| tree | 754e886c35ebfe1e809b5bf788235595f9b12da5 | |
| parent | 938c7639ad420e5c6164b4c883100467e8396330 (diff) | |
Use cl-pushnew instead of push to register the completion style
Thanks to alphapapa for suggesting this change.
| -rw-r--r-- | orderless.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/orderless.el b/orderless.el index b324fc7..cf376e1 100644 --- a/orderless.el +++ b/orderless.el @@ -4,6 +4,9 @@ ;; Author: Omar Antolín Camarena <omar@matem.unam.mx> ;; Keywords: extensions +;; Version: 0.1 +;; Homepage: https://github.com/oantolin/orderless +;; Package-Requires: ((emacs "24.3")) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -68,10 +71,10 @@ ((atom (cdr all)) (measured (concat prefix (car all)))) (t (measured string)))))) -(push '(orderless - orderless-try-completion orderless-all-completions - "Completion of multiple regexps, in any order.") - completion-styles-alist) +(cl-pushnew '(orderless + orderless-try-completion orderless-all-completions + "Completion of multiple regexps, in any order.") + completion-styles-alist) (provide 'orderless) ;;; orderless.el ends here |
