jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 260 forks source link

Install by specified source? #931

Open jcs090218 opened 3 years ago

jcs090218 commented 3 years ago

This is either a feature/question issue. I wonder if use-package can do the following.

(use-package origami
  :source 'celpa  ; or melpa
  :init ...)
thomasf commented 3 years ago

:pin

conao3 commented 3 years ago

below use-pacakge will expand like this.

(macroexpand-all
 '(use-package origami
    :pin celpa  ; or melpa
    :init nil))
;;=> (progn
;;     (use-package-pin-package 'origami "celpa")
;;     (require 'origami nil nil))

use-package.el is no longer needed at runtime but use-package-pin-package is a function. Therefore, we need use-package run-time? it is a bug?

skangas commented 2 years ago

use-package.el is no longer needed at runtime but use-package-pin-package is a function. Therefore, we need use-package run-time? it is a bug?

@jwiegley Could you answer that question? At the very least, it seems like a documentation bug.

jwiegley commented 1 year ago

I didn't write any of the package-related functions, so I'm not even sure what use-package-pin-package does.