| 1 | ;;; $DOOMDIR/packages.el -*- lexical-binding: t; no-byte-compile: t -*- |
| 2 | |
| 3 | ;; To install a package: |
| 4 | ;; |
| 5 | ;; 1. Declare them here in a `package!' statement, |
| 6 | ;; 2. Run 'doom sync' in the shell, |
| 7 | ;; 3. Restart Emacs. |
| 8 | ;; |
| 9 | ;; Use 'C-h f package\!' to look up documentation for the `package!' macro. |
| 10 | |
| 11 | |
| 12 | ;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: |
| 13 | ;; (package! some-package) |
| 14 | |
| 15 | ;; To install a package directly from a remote git repo, you must specify a |
| 16 | ;; `:recipe'. You'll find documentation on what `:recipe' accepts here: |
| 17 | ;; https://github.com/radian-software/straight.el#the-recipe-format |
| 18 | ;; (package! another-package |
| 19 | ;; :recipe (:host github :repo "username/repo")) |
| 20 | |
| 21 | ;; If the package you are trying to install does not contain a PACKAGENAME.el |
| 22 | ;; file, or is located in a subdirectory of the repo, you'll need to specify |
| 23 | ;; `:files' in the `:recipe': |
| 24 | ;; (package! this-package |
| 25 | ;; :recipe (:host github :repo "username/repo" |
| 26 | ;; :files ("some-file.el" "src/lisp/*.el"))) |
| 27 | |
| 28 | ;; If you'd like to disable a package included with Doom, you can do so here |
| 29 | ;; with the `:disable' property: |
| 30 | ;; (package! builtin-package :disable t) |
| 31 | |
| 32 | ;; You can override the recipe of a built in package without having to specify |
| 33 | ;; all the properties for `:recipe'. These will inherit the rest of its recipe |
| 34 | ;; from Doom or MELPA/ELPA/Emacsmirror: |
| 35 | ;; (package! builtin-package :recipe (:nonrecursive t)) |
| 36 | ;; (package! builtin-package-2 :recipe (:repo "myfork/package")) |
| 37 | |
| 38 | ;; Specify a `:branch' to install a package from a particular branch or tag. |
| 39 | ;; This is required for some packages whose default branch isn't 'master' (which |
| 40 | ;; our package manager can't deal with; see radian-software/straight.el#279) |
| 41 | ;; (package! builtin-package :recipe (:branch "develop")) |
| 42 | |
| 43 | ;; Use `:pin' to specify a particular commit to install. |
| 44 | ;; (package! builtin-package :pin "1a2b3c4d5e") |
| 45 | |
| 46 | |
| 47 | ;; Doom's packages are pinned to a specific commit and updated from release to |
| 48 | ;; release. The `unpin!' macro allows you to unpin single packages... |
| 49 | ;; (unpin! pinned-package) |
| 50 | ;; ...or multiple packages |
| 51 | ;; (unpin! pinned-package another-pinned-package) |
| 52 | ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) |
| 53 | ;; (unpin! t) |
| 54 | |
| 55 | (package! kitty-graphics |
| 56 | :recipe (:host github :repo "cashmeredev/kitty-graphics.el")) |
| 57 | (package! exec-path-from-shell) |
| 58 | (package! jabber |
| 59 | :recipe (:type git :repo "https://git.thanosapollo.org/emacs-jabber" |
| 60 | :files (:defaults "lisp/jabber-omemo-core.dylib") |
| 61 | ;; Build OMEMO native module. Needs `brew install mbedtls@3' |
| 62 | ;; (4.x dropped mbedtls/aes.h); macOS has no getrandom, so shim it. |
| 63 | :pre-build (("sh" "-c" "PKG_CONFIG_PATH=/opt/homebrew/opt/mbedtls@3/lib/pkgconfig CFLAGS=\"-I/opt/homebrew/opt/emacs/include '-Dgetrandom(b,n,f)=(arc4random_buf((b),(n)),(ssize_t)(n))'\" MBED_STATIC=1 make module")))) |