-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
executable file
·59 lines (52 loc) · 1.27 KB
/
init.el
File metadata and controls
executable file
·59 lines (52 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
;;
;; Most of this init.el file is an adaptation of Daniel Mai's configuration file
;; https://github.com/danielmai/.emacs.d/blob/master/init.el
;;
(setq gc-cons-threshold 400000000)
;;
;; STARTUP
;;
;;
;; The first line of the init.el file seems to be speeding up the time it takes for Emacs to start ...
;;
;;
;;
;;
;; Begin initialization
;;
;;
;; Turn off mouse interface early in startup to avoid momentary display
;;
(menu-bar-mode -1)
(when window-system
(tool-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-mode -1))
(setq inhibit-startup-message t)
;;
;; PACKAGES
;;
;;
;; Set up package
(require 'package)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
)
)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;;
;; MORE CUSTOMIZATIONS
;;
;;
;; Set custom-file but only load if it exists (auto-generated by Emacs)
(setq custom-file (expand-file-name "inits/custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
;; Load the config
(org-babel-load-file (expand-file-name "inits/repp.org" user-emacs-directory))
(setq gc-cons-threshold 800000)