You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
891 B
27 lines
891 B
5 years ago
|
;; Increases garbage collection during startup
|
||
|
(setq startup/gc-cons-threshold gc-cons-threshold)
|
||
|
(setq gc-cons-threshold most-positive-fixnum)
|
||
|
(defun startup/reset-gc () (setq gc-cons-threshold startup/gc-cons-threshold))
|
||
|
(add-hook 'emacs-startup-hook 'startup/reset-gc)
|
||
|
|
||
|
; --------------------------------------
|
||
|
|
||
|
;; Add the melpa repository to the package manager
|
||
|
(require 'package)
|
||
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||
|
|
||
|
;; Activate autoloads
|
||
|
(package-initialize)
|
||
|
|
||
|
;; Install the 'use-package' dependency
|
||
|
(unless (package-installed-p 'use-package)
|
||
|
(package-refresh-contents)
|
||
|
(package-install 'use-package))
|
||
|
|
||
|
; --------------------------------------
|
||
|
|
||
|
;; Load actual config file
|
||
|
(require 'org)
|
||
|
(when (file-readable-p (expand-file-name "config.org" user-emacs-directory))
|
||
|
(org-babel-load-file (expand-file-name "config.org" user-emacs-directory)))
|