-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
executable file
·55 lines (49 loc) · 1.87 KB
/
init.el
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(setq comp-speed 2)
;; Packages setup to prepare literate-elisp
(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 straight-use-package-by-default t)
(straight-use-package 'use-package)
(require 'use-package)
(setq use-package-compute-statistics t)
(use-package general)
(use-package org)
(use-package
literate-elisp
:demand t
:config
;; ;; To make `elisp-refs' work with `literate-elisp', we need to add an advice to `elisp-refs--read-all-buffer-forms'.
(eval-after-load "elisp-refs"
'(advice-add
'elisp-refs--read-all-buffer-forms
:around #'literate-elisp-refs--read-all-buffer-forms))
;; To make `elisp-refs' work with `literate-elisp', we need to add an advice to `elisp-refs--loaded-paths'.
(eval-after-load "elisp-refs"
'(advice-add
'elisp-refs--loaded-paths
:filter-return #'literate-elisp-refs--loaded-paths))
;; To make `helpful' work with `literate-elisp', we need to add an advice to `helpful--find-by-macroexpanding'.
(eval-after-load 'helpful
'(advice-add
'helpful--find-by-macroexpanding
:around #'literate-elisp-helpful--find-by-macroexpanding)))
; Start literate load
(literate-elisp-load
(expand-file-name "init.org" user-emacs-directory))
(setq custom-file (concat user-emacs-directory "custom.el"))
(if (not (file-exists-p custom-file))
(f-touch custom-file))
(load custom-file)