Skip to content

Commit

Permalink
Mention commit pinning in docs with package!
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed Dec 28, 2019
1 parent 7ef3bee commit da09a3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 9 additions & 0 deletions core/templates/packages.example.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
;;
;; 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:
;(package! some-package)

Expand Down
13 changes: 5 additions & 8 deletions docs/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -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:
(package! ansible :recipe (:nonrecursive t))

;; To install a particular branch, commit or tag:
(package! evil
;; if :host and :fetcher aren't specified, the package manager will fall back
;; to evil's default source provided by their (M)ELPA recipes:
:recipe (:commit "e7bc39de2f961505e8e112da8c1b315ae8afce52"))

;; To pin a package to a specific commit:
(package! evil :pin "e7bc39de2f961505e8e112da8c1b315ae8afce52")
;; ...or branch:
(package! evil :recipe (:branch "stable"))

(package! evil :recipe (:tag "1.2.9"))
;; To unpin a pinned package:
(package! evil :pin nil)

;; 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
Expand Down

0 comments on commit da09a3e

Please sign in to comment.