]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow `:load t' to mean the same as :load of the package name
authorJohn Wiegley <johnw@newartisans.com>
Tue, 5 Dec 2017 23:46:55 +0000 (15:46 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 5 Dec 2017 23:46:55 +0000 (15:46 -0800)
lisp/use-package/use-package-core.el

index 649779bb2714cc0a3de9d3f72a4a75d3724c7db1..9d55074b19d1ff79ab48406543adacb93d61855d 100644 (file)
@@ -1244,7 +1244,7 @@ no keyword implies `:all'."
 (defun use-package-handler/:load (name keyword arg rest state)
   (let ((body (use-package-process-keywords name rest state)))
     (cl-dolist (pkg arg)
-      (setq body (use-package-require pkg nil body)))
+      (setq body (use-package-require (if (eq t pkg) name pkg) nil body)))
     body))
 
 ;;;; :config