How to pin package to specific commit #397
-
similar to what DOOM Emacs does, in DOOM Emacs, we can use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, Crafted Emacs uses the built-in You can use |
Beta Was this translation helpful? Give feedback.
-
Pinning packages is possible, simply update the variable 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 only picks the one to load and activate when Emacs is starting. This example came from a time when loading tree-sitter-langs (for Emacs 28) was broken in versions after 0.12.8. The fix was resolved several versions later. Also, there was a time when doom modeline was installed by default in Crafted Emacs, however, due to the number of problems it caused, we stopped automatically installing it. In my case I had it installed, but never wanted to use it, so setting the version to Hope that helps! cc: @emacsbliss @jvdydev |
Beta Was this translation helpful? Give feedback.
Pinning packages is possible, simply update the variable
package-load-list
(see the info page for complete information).Here is an example:
This method does not prevent the user from installing different versions of the same package, it onl…