-
Notifications
You must be signed in to change notification settings - Fork 9
/
init.el
51 lines (43 loc) · 1.59 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
(defun fix-null-term (s)
"Fix string S with extra wonky null terminators.
For whatever reason this affects certain strings in the conda
package for Emacs. These look like `blabla\0\0\0\0\0\0\0`."
(declare (pure t) (side-effect-free t))
(save-match-data
(if (string-match "\0+" s)
(replace-match "" t t s)
s)))
;; HACK stuff won't install unless this string is fixed
(if (< (round (string-to-number emacs-version)) 29)
(setq Info-default-directory-list
(cons
(fix-null-term (car Info-default-directory-list))
(cdr Info-default-directory-list)))
(setq configure-info-directory (fix-null-term configure-info-directory)))
(setq package-enable-at-startup nil)
(setq user-emacs-directory
(file-name-concat (expand-file-name ".emacs") emacs-version))
(defvar bootstrap-version)
(let ((bootstrap-file
(file-name-concat
user-emacs-directory
"straight/repos/straight.el/bootstrap.el"))
(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))
(straight-use-package 's)
(straight-use-package 'f)
(straight-use-package 'dash)
(straight-use-package 'buttercup)
(straight-use-package 'org)
(straight-use-package 'org-ml)
(defun compile-target ()
"Compile org-ml."
(byte-compile-file "org-ml-macs.el")
(byte-compile-file "org-ml.el"))