-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
44 lines (38 loc) · 1.22 KB
/
init.el
File metadata and controls
44 lines (38 loc) · 1.22 KB
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
;;; -*- lexical-binding: t -*-
;; Reset after early-init
(setq gc-cons-threshold 100000000 ; 100mb
gc-cons-percentage 0.1)
;; Straight bootstrap
(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))
;; use-package
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)
;; init emacs server
(require 'server)
(unless (server-running-p)
(server-start))
;; dispose automatically generated custom garbage
(setq custom-file (make-temp-file "emacs-custom-"))
;; Load all files from my `~/.emacs.d/config' directory
;; It doesn't support nested dirs
(dolist
(file
(directory-files
(concat (expand-file-name user-emacs-directory) "config")
t
"^.[^#].+el$"))
(load-file file))