summaryrefslogtreecommitdiff
path: root/init.el
blob: 6a9fa4af943977fb47fc66658ab9a4c679411213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;; -*- lexical-binding: t; -*-

;; 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))

;; Configure straight.el
(straight-use-package '(project :type built-in))
(straight-use-package '(xref :type built-in))
(straight-use-package 'use-package)

(setq straight-use-package-by-default t)

;; WICHTIG: Org vor org-babel-load-file laden
(straight-use-package 'org)

;; Jetzt kann die literate config sicher geladen werden
(org-babel-load-file (expand-file-name "config.org" user-emacs-directory))