summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2025-10-07 13:55:18 +0200
committercashmere <cashmere@autistici.org>2025-10-07 13:55:18 +0200
commit0203386788d435d4d7eaa934f42a6f99163656ec (patch)
treeabfb84912ad8a83934a4dcae9c85387196ca52f2 /init.el
parent7ea4b74a48efc04b5e0bccaefea5493748ed16f1 (diff)
downloademacs-0203386788d435d4d7eaa934f42a6f99163656ec.tar.gz
sync
Diffstat (limited to 'init.el')
-rw-r--r--init.el50
1 files changed, 26 insertions, 24 deletions
diff --git a/init.el b/init.el
index 91b2fdc..6a9fa4a 100644
--- a/init.el
+++ b/init.el
@@ -1,30 +1,32 @@
;; -*- lexical-binding: t; -*-
-;; Bootstrap package management
-(require 'package)
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
-(package-initialize)
+;; Bootstrap straight.el (bestehender Code beibehalten)
+(setq straight-check-for-modifications nil)
+(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))
-;; Make sure org is available for loading the literate config
-(unless (package-installed-p 'org)
- (package-refresh-contents)
- (package-install 'org))
+;; Configure straight.el
+(straight-use-package '(project :type built-in))
+(straight-use-package '(xref :type built-in))
+(straight-use-package 'use-package)
-;; Load the literate configuration from init.org
-(org-babel-load-file (expand-file-name "config.org" user-emacs-directory))
+(setq straight-use-package-by-default t)
+;; WICHTIG: Org vor org-babel-load-file laden
+(straight-use-package 'org)
-(custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(custom-safe-themes
- '("bbddadeeac41a4bfd89d5862c0bc452b8c9c5ff41ca9bbb8caabba87a3006a3b"
- default)))
-(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
+;; Jetzt kann die literate config sicher geladen werden
+(org-babel-load-file (expand-file-name "config.org" user-emacs-directory))