-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
25 lines (19 loc) · 797 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
(setq user-init-file (or load-file-name (buffer-file-name)))
(setq user-emacs-directory (file-name-directory user-init-file))
(setq normal-gc-cons-threshold (* 20 1024 1024))
(setq init-gc-cons-threshold (* 128 1024 1024))
(setq gc-cons-threshold init-gc-cons-threshold)
(add-hook 'emacs-startup-hook
(lambda () (setq gc-cons-threshold normal-gc-cons-threshold)))
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (eq system-type 'windows-nt)
(progn
(set-language-environment "UTF-8")
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8-unix)
(set-terminal-coding-system 'utf-8-unix)))
(require 'org)
(org-babel-load-file
(expand-file-name "config.org"
user-emacs-directory))
(add-to-list 'load-path "~/.emacs.d/snippets")