From 5993f593b4a9706a3b7628205a020953ad1247b7 Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 25 Jul 2014 02:10:44 +0200 Subject: Use mapcar instead of requiring dash --- lisp/init-package.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lisp/init-package.el') diff --git a/lisp/init-package.el b/lisp/init-package.el index cef583c..f60edd2 100644 --- a/lisp/init-package.el +++ b/lisp/init-package.el @@ -16,13 +16,9 @@ re-downloaded in order to locate PACKAGE." (package-refresh-contents) (require-package package min-version t))))) -;; dash - a better list api -(require-package 'dash) -(require 'dash) - (defun require-packages (packages) "Install a list of PACKAGES." - (--each packages (require-package it))) + (mapcar (lambda (package) (require-package package)) packages)) ;; add ~/.emacs.d/site-lisp to load path, if it exists ;; used for backported code and overriding existing packages -- cgit v1.2.3