From 5e5fcd26017530694ea5de4400e97fb2e9f614e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Tue, 6 Jun 2023 20:01:07 +0200 Subject: [PATCH] Minimum straight.el configuration --- early-init.el | 1 + init.el | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 early-init.el create mode 100644 init.el diff --git a/early-init.el b/early-init.el new file mode 100644 index 0000000..512068a --- /dev/null +++ b/early-init.el @@ -0,0 +1 @@ +(setq package-enable-at-startup nil) diff --git a/init.el b/init.el new file mode 100644 index 0000000..dad37df --- /dev/null +++ b/init.el @@ -0,0 +1,20 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; set up straight package manager +;; +(defvar bootstrap-version) +(let ((bootstrap-file + (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) + (bootstrap-version 6)) + (unless (file-exists-p bootstrap-file) + (with-current-buffer + (url-retrieve-synchronously + "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage)) +;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Install and configure use-package +(straight-use-package 'use-package) +(setq straight-use-package-by-default t)