From 0203386788d435d4d7eaa934f42a6f99163656ec Mon Sep 17 00:00:00 2001 From: cashmere Date: Tue, 7 Oct 2025 13:55:18 +0200 Subject: sync --- init.el | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) (limited to 'init.el') 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)) -- cgit v1.3.1