-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
26 lines (18 loc) · 875 Bytes
/
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
;;; initialization
(setq user-emacs-directory (expand-file-name "~/.cache/emacs/"))
(setq package-user-dir (expand-file-name "elpa" user-emacs-directory))
(message "user-emacs-directory %s package-user-dir %s" user-emacs-directory package-user-dir)
(when (boundp 'native-comp-eln-load-path)
(setcar native-comp-eln-load-path
(expand-file-name (convert-standard-filename "eln-cache/")
user-emacs-directory)))
(setq gc-cons-threshold 100000000)
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(require 'package)
(if (< emacs-major-version 28)
(add-to-list 'package-archives
'("nongnu" . "https://elpa.nongnu.org/nongnu/") t))
(add-to-list 'package-archives
'("melpa" . "https://stable.melpa.org/packages/") t)
(package-initialize) ; make sure to update load-path for downloaded packages
(org-babel-load-file "~/.config/emacs/myinit.org")