doom-emacs/packages.el

99 lines
3.7 KiB
EmacsLisp
Raw Permalink Normal View History

2022-06-16 23:04:38 -07:00
2020-12-01 12:47:50 -08:00
;; -*- no-byte-compile: t; -*-
;;; $DOOMDIR/packages.el
;; To install a package with Doom you must declare them here and run 'doom sync'
;; on the command line, then restart Emacs for the changes to take effect -- or
;; use 'M-x doom/reload'.
;;; Code:
2020-12-01 12:47:50 -08:00
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
2024-09-09 14:52:42 -07:00
; (package! some-package)
2020-12-01 12:47:50 -08:00
2022-12-20 15:32:39 -08:00
(package! elpher)
2021-07-26 17:14:19 -07:00
(package! edit-server)
(package! ivy-prescient)
2024-09-09 14:52:42 -07:00
; (package! ace-jump-mode)
2021-07-26 17:14:19 -07:00
(package! noflet)
2022-06-16 23:04:38 -07:00
(package! org-roam)
(package! flycheck-clj-kondo)
2023-12-05 11:00:57 -08:00
(package! org-roam)
2023-12-18 10:36:45 -08:00
(package! ox-gemini)
2024-09-09 14:52:42 -07:00
(package! thrift-mode)
2023-12-04 16:47:23 -08:00
(package! pylint)
;; Not sure if this is really needed...
(add-hook! clojure-mode
2023-12-04 16:47:23 -08:00
(require 'flycheck-clj-kondo))
2021-07-26 17:14:19 -07:00
2021-12-15 14:52:02 -08:00
(package! graphviz-dot-mode)
2023-12-20 21:20:18 -08:00
(after! marginalia
2021-10-08 10:03:27 -07:00
(marginalia-mode))
(package! embark)
2021-10-08 10:03:27 -07:00
2023-12-14 10:36:20 -08:00
(package! chatgpt-shell)
2021-07-26 17:14:19 -07:00
(defun tls-nocheck-error-advice (orig-fun &rest args)
"Advise a function (with :around) not to check TLS errors.
ORIG-FUN - Funtion name to be advised
ARGS - Arguments to function
Usage: (advice-add 'my-function-for-advisement :around 'tls-nocheck-error-advice."
(let ((gnutls-verify-error nil))
(apply orig-fun args)))
2023-12-20 21:20:18 -08:00
(after! elpher
;; :config
2021-07-26 17:14:19 -07:00
(advice-add 'elpher-get-gemini-response :around 'tls-nocheck-error-advice))
2023-05-18 11:03:12 -07:00
(when (and (package! eglot) (package! nix-mode))
2023-12-20 21:20:18 -08:00
(package! eglot)
(after! eglot
2024-09-09 14:52:42 -07:00
(add-to-list 'eglot-server-programs '(nix-mode . ("nil")))
(add-hook nix-mode 'eglot-ensure)))
2023-05-18 11:03:12 -07:00
2020-12-01 12:47:50 -08:00
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format
2023-05-18 11:03:12 -07:00
;(package! another-package
; :recipe (:host github :repo "username/repo"))
2020-12-01 12:47:50 -08:00
;; If the package you are trying to install does not contain a PACKAGENAME.el
;; file, or is located in a subdirectory of the repo, you'll need to specify
;; `:files' in the `:recipe':
2023-05-18 11:03:12 -07:00
;(package! this-package
; :recipe (:host github :repo "username/repo"
; :files ("some-file.el" "src/lisp/*.el")))
2020-12-01 12:47:50 -08:00
;; If you'd like to disable a package included with Doom, you can do so here
;; with the `:disable' property:
2023-05-18 11:03:12 -07:00
;(package! builtin-package :disable t)
2020-12-01 12:47:50 -08:00
;; You can override the recipe of a built in package without having to specify
;; all the properties for `:recipe'. These will inherit the rest of its recipe
;; from Doom or MELPA/ELPA/Emacsmirror:
2023-05-18 11:03:12 -07:00
;(package! builtin-package :recipe (:nonrecursive t))
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
2020-12-01 12:47:50 -08:00
;; Specify a `:branch' to install a package from a particular branch or tag.
;; This is required for some packages whose default branch isn't 'master' (which
;; our package manager can't deal with; see raxod502/straight.el#279)
2023-05-18 11:03:12 -07:00
;(package! builtin-package :recipe (:branch "develop"))
2020-12-01 12:47:50 -08:00
;; Use `:pin' to specify a particular commit to install.
2023-05-18 11:03:12 -07:00
;(package! builtin-package :pin "1a2b3c4d5e")
2020-12-01 12:47:50 -08:00
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...
2023-05-18 11:03:12 -07:00
;(unpin! pinned-package)
2020-12-01 12:47:50 -08:00
;; ...or multiple packages
2023-05-18 11:03:12 -07:00
;(unpin! pinned-package another-pinned-package)
2020-12-01 12:47:50 -08:00
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
2023-05-18 11:03:12 -07:00
;(unpin! t)