From: John Wiegley Date: Tue, 5 Dec 2017 23:46:55 +0000 (-0800) Subject: Allow `:load t' to mean the same as :load of the package name X-Git-Tag: emacs-29.0.90~1306^2~15^2~129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0c110ebd67;p=emacs.git Allow `:load t' to mean the same as :load of the package name --- diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 649779bb271..9d55074b19d 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -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