Remove possibility of duplicates in package management functions

This commit is contained in:
Henrik Lissner 2017-03-14 15:18:36 -04:00
parent 84275d312d
commit e967412687
2 changed files with 3 additions and 2 deletions

View file

@ -70,7 +70,8 @@ Be careful not to use it in a loop."
(mapcar (lambda (pkgsym)
(or (assq pkgsym doom-packages)
(list (car (assq pkgsym package-alist)))))
(append doom-protected-packages (mapcar 'car doom-packages)))))
(cl-delete-duplicates
(append doom-protected-packages (mapcar 'car doom-packages))))))
;;;###autoload
(defun doom-get-dependencies-for (name)

View file

@ -205,7 +205,7 @@
:m "[t" 'hl-todo-previous
;; Navigation
:nv "K" 'smart-up
:m "gD" 'doom/find-def
:m "gD" '+jump/find-definition
:n "gf" 'find-file-at-point
:n "gp" '+evil/reselect-paste
:n "gc" 'evil-commentary