mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
49 lines
1.7 KiB
EmacsLisp
49 lines
1.7 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:
|
|
|
|
;; Work-around bug in Emacs 26.2 preventing GNU ELPA to work over HTTPS.
|
|
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
|
|
|
;; Initialize straight.el
|
|
(setq straight-cache-autoloads t
|
|
straight-check-for-modifications '(check-on-save find-when-checking)
|
|
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))
|
|
|
|
;; https://github.com/raxod502/straight.el/issues/49#issuecomment-395979478
|
|
(defun straight-x-clean-unused-repos ()
|
|
(interactive)
|
|
(dolist (repo (straight--directory-files (straight--repos-dir)))
|
|
(unless (or (straight--checkhash repo straight--repo-cache)
|
|
(not (y-or-n-p (format "Delete repository %S?" repo))))
|
|
(delete-directory (straight--repos-dir repo) 'recursive 'trash))))
|
|
|
|
(straight-use-package 'dash)
|
|
(straight-use-package 'diminish)
|
|
(straight-use-package 'exec-path-from-shell)
|
|
(straight-use-package 'smart-mode-line)
|
|
(straight-use-package 'use-package)
|
|
|
|
(provide 'siren-core-packages)
|
|
;;; siren-core-packages.el ends here
|