62 lines
2.3 KiB
EmacsLisp
62 lines
2.3 KiB
EmacsLisp
;;; init.el --- Emacs init file
|
|
;; Author: Eli Mellen
|
|
;;; Commentary:
|
|
;;; A lightweight Emacs config containing only the stuff I know how to use!
|
|
;;; Code:
|
|
(setq gc-cons-threshold 402653184
|
|
gc-cons-percentage 0.6
|
|
file-name-handler-alist-original file-name-handler-alist
|
|
file-name-handler-alist nil
|
|
site-run-file nil)
|
|
|
|
(add-hook 'emacs-startup-hook
|
|
(lambda ()
|
|
(setq gc-cons-threshold 20000000
|
|
gc-cons-percentage 0.1
|
|
file-name-handler-alist file-name-handler-alist-original)
|
|
(makunbound 'file-name-handler-alist-original)))
|
|
|
|
(add-hook 'minibuffer-setup-hook (lambda () (setq gc-cons-threshold 40000000)))
|
|
(add-hook 'minibuffer-exit-hook (lambda ()
|
|
(garbage-collect)
|
|
(setq gc-cons-threshold 20000000)))
|
|
|
|
(require 'package)
|
|
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
|
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/"))
|
|
(setq package-enable-at-startup nil)
|
|
(package-initialize)
|
|
|
|
;; workaround bug in Emacs 26.2
|
|
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
|
|
|
;; Setting up the package manager. Install if missing.
|
|
(unless (package-installed-p 'use-package)
|
|
(package-refresh-contents)
|
|
(package-install 'use-package))
|
|
(eval-and-compile
|
|
(setq use-package-always-ensure t))
|
|
|
|
;; Load main config file "./pillow-fort.org"
|
|
(require 'org)
|
|
(org-babel-load-file (expand-file-name "~/.emacs.d/pillow-fort.org"))
|
|
|
|
(provide 'init)
|
|
;;; init.el ends here
|
|
(custom-set-variables
|
|
;; custom-set-variables was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
'(custom-safe-themes
|
|
(quote
|
|
("801a567c87755fe65d0484cb2bded31a4c5bb24fd1fe0ed11e6c02254017acb2" "341b2570a9bbfc1817074e3fad96a7eff06a75d8e2362c76a2c348d0e0877f31" default)))
|
|
'(package-selected-packages (quote (use-package slime))))
|
|
(custom-set-faces
|
|
;; custom-set-faces was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
)
|