Mention commit pinning in docs with package!
This commit is contained in:
parent
7ef3bee851
commit
da09a3eb8c
2 changed files with 14 additions and 8 deletions
|
@ -11,6 +11,15 @@
|
||||||
;;
|
;;
|
||||||
;; Here are a couple examples:
|
;; Here are a couple examples:
|
||||||
|
|
||||||
|
|
||||||
|
;; All of Doom's packages are pnned to a specific commit, and updated from
|
||||||
|
;; release to release. To un-pin all packages and live on the edge, do:
|
||||||
|
;(setq doom-pinned-packages nil)
|
||||||
|
|
||||||
|
;; ...but to unpin a single package:
|
||||||
|
;(package! pinned-package :pin nil)
|
||||||
|
|
||||||
|
|
||||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
;(package! some-package)
|
;(package! some-package)
|
||||||
|
|
||||||
|
|
13
docs/api.org
13
docs/api.org
|
@ -404,15 +404,12 @@ These are side-by-side comparisons, showing how to bind keys with and without
|
||||||
;; you can tell the package manager not to clone the repo recursively:
|
;; you can tell the package manager not to clone the repo recursively:
|
||||||
(package! ansible :recipe (:nonrecursive t))
|
(package! ansible :recipe (:nonrecursive t))
|
||||||
|
|
||||||
;; To install a particular branch, commit or tag:
|
;; To pin a package to a specific commit:
|
||||||
(package! evil
|
(package! evil :pin "e7bc39de2f961505e8e112da8c1b315ae8afce52")
|
||||||
;; if :host and :fetcher aren't specified, the package manager will fall back
|
;; ...or branch:
|
||||||
;; to evil's default source provided by their (M)ELPA recipes:
|
|
||||||
:recipe (:commit "e7bc39de2f961505e8e112da8c1b315ae8afce52"))
|
|
||||||
|
|
||||||
(package! evil :recipe (:branch "stable"))
|
(package! evil :recipe (:branch "stable"))
|
||||||
|
;; To unpin a pinned package:
|
||||||
(package! evil :recipe (:tag "1.2.9"))
|
(package! evil :pin nil)
|
||||||
|
|
||||||
;; If you share your config between two computers, and don't want bin/doom
|
;; If you share your config between two computers, and don't want bin/doom
|
||||||
;; refresh to delete packages used only on one system, use :ignore
|
;; refresh to delete packages used only on one system, use :ignore
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue