Files
.emacs.d/core/siren-core-packages.el
Jim Myhrberg 5a425b5812 fix(version-control): pin diff-hl to a known good commit
The very next commit introduces a new feature to show git hunks, which
seems to have a negative impact on performance when moving the cursor
around, or adding/removing text within lines which are highlighted by
diff-hl while diff-hl-flydiff-mode is enabled.

So for now I'm pinning diff-hl to the commit right before this was
introduced.
2021-04-01 01:07:33 +01:00

45 lines
1.5 KiB
EmacsLisp

;;; siren-core-packages.el --- jimeh's Emacs Siren: Core package setup
;;; Commentary:
;; Install and configure various packages that the core of Siren depends on.
;;; Code:
;; Initialize straight.el
(setq straight-cache-autoloads t
straight-check-for-modifications '(check-on-save find-when-checking)
straight-profiles '((nil . "default.el")
(pinned . "pinned.el"))
straight-repository-branch "develop"
straight-use-package-by-default t
use-package-always-ensure nil)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el"
user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(autoload 'straight-x-clean-unused-repos "straight-x" nil t)
(autoload 'straight-x-pull-all "straight-x" nil t)
(autoload 'straight-x-freeze-versions "straight-x" nil t)
(autoload 'straight-x-thaw-pinned-versions "straight-x" nil t)
(defun straight-x-pin-package (package gitsha)
(add-to-list 'straight-x-pinned-packages
`(,package . ,gitsha)))
(straight-use-package 'use-package)
(provide 'siren-core-packages)
;;; siren-core-packages.el ends here