This repository was archived by the owner on Jan 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
111 lines (85 loc) · 2.89 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
;;; init.el --- -*- lexical-binding: t; -*-
;; (setq straight-disable-native-compile t)
(setq comp-speed 2)
(defvar js/after-init-hook nil
"Hook that runs after init.el has completely loaded")
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-language-environment 'utf-8)
(set-selection-coding-system 'utf-8)
;;(load (expand-file-name "lib/util.el" user-emacs-directory))
(add-to-list 'load-path (expand-file-name "lib" user-emacs-directory))
(add-to-list 'load-path (expand-file-name "misc" user-emacs-directory))
;; Add my custom packages to the load path
(mapc
(lambda (dir)
(add-to-list 'load-path dir))
(directory-files
(expand-file-name
"jpkgs"
user-emacs-directory)
t
directory-files-no-dot-files-regexp))
;; See https://www.emacswiki.org/emacs/BackupDirectory
(require 'util)
(setq user-cache-dir (ensure-dir user-emacs-directory ".cache"))
(setq custom-file (concat-path user-cache-dir "custom.el"))
;; Set the cache directory before I even start...
(defvar user-src-dir (expand-file-name "~/.install")
"The directory to use to auto-install and compile binaries from
source (see rust/elixir)")
(let ((e (getenv "USR_SRC_DIR")))
(when e
(setq user-src-dir e)))
(defvar js/overrides-file-name
(expand-file-name
"local.el"
user-emacs-directory))
;; Bootstrap Straight
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(require 'early/early-package)
(require 'early/early-config)
;; Install everything at the beginning
(require 'install)
(require 'after/install-after)
;; After packages have been installed...
(require 'better-defaults)
(require 'delight)
(require 'use-package)
(require 'auto-minor-mode)
(require 'load-relative)
(require 'mode-local)
;;(add-to-list 'load-path user-emacs-directory)
;; Configure everything
(require 'base)
;;(load (concat-path user-emacs-directory "rootconf"))
(require 'rootconf)
;; Load active configs
(dolist (act active-configs)
(load-cust act))
;; Finally, the aesthetic changes
(require 'aesthetic)
;; I doubt I'll ever use custom, but what the heck?
(setq custom-file (concat-path user-cache-dir "custom.el"))
(load custom-file)
(condition-case err
(load js/overrides-file-name)
(file-missing
(progn
(ensure-file js/overrides-file-name)
(message (format "Created %s" js/overrides-file-name)))))
(put 'downcase-region 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)
(run-hooks 'js/after-init-hook)
;; <(nothing)>