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.
31 lines
1.0 KiB
31 lines
1.0 KiB
;; 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) |
|
|
|
; -------------------------------------- |
|
|
|
(defvar emacs-cache (concat (getenv "XDG_CACHE_HOME") "/emacs") |
|
"Directory where cache data is stored.") |
|
|
|
; -------------------------------------- |
|
|
|
;; 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)))
|
|
|