Skip to content

How to pin package to specific commit #397

Answered by jeffbowman
emacsbliss asked this question in Q&A
Discussion options

You must be logged in to vote

Pinning packages is possible, simply update the variable package-load-list (see the info page for complete information).

Here is an example:

(customize-set-variable 'package-load-list
                        '((doom-modeline nil)          ; disallows doom-modeline, if it is installed, to ever be loaded.
                          (tree-sitter-langs "0.12.8") ; only allows tree-sitter-langs 0.12.8 to be loaded regardless if other versions are installed.
                          all))                                    ; load everything else normally using the most current version installed.

This method does not prevent the user from installing different versions of the same package, it onl…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@emacsbliss
Comment options

Comment options

You must be logged in to vote
2 replies
@jvdydev
Comment options

@jeffbowman
Comment options

Answer selected by jvdydev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants