aboutsummaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2024-01-22 21:30:50 -0300
committerGitHub <noreply@github.com>2024-01-22 21:30:50 -0300
commit3f39dc344e28a88d2ccc84574351c844c56a5329 (patch)
tree0e314e87679ab87c98d83d0ecc31b0fd4f8c8a6f /init.el
parentb80f634b9e4aa6c13d894064a7001fcc5cfa1cbf (diff)
downloadMageMacs-3f39dc344e28a88d2ccc84574351c844c56a5329.tar.gz
MageMacs-3f39dc344e28a88d2ccc84574351c844c56a5329.zip
clean packaging with straight
Diffstat (limited to '')
-rwxr-xr-xinit.el23
1 files changed, 19 insertions, 4 deletions
diff --git a/init.el b/init.el
index bb401e7..eca97b3 100755
--- a/init.el
+++ b/init.el
@@ -1,8 +1,23 @@
-(require 'package)
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
-(package-initialize)
+(defvar bootstrap-version)
+(let ((bootstrap-file
+ (expand-file-name
+ "straight/repos/straight.el/bootstrap.el"
+ (or (bound-and-true-p straight-base-dir)
+ user-emacs-directory)))
+ (bootstrap-version 7))
+ (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))
+
+(setq package-enable-at-startup nil)
+
+(straight-use-package 'use-package)
(load-file "~/.emacs.d/theme.el")
(load-file "~/.emacs.d/behaviour.el")
(load-file "~/.emacs.d/configuration.el")
-