From 0e2d79e4ff519b9ec9be625bf0a6751eda1cbc90 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 26 Aug 2017 19:13:40 -0700 Subject: [PATCH] [Emacs] Move benchmark initialization to init.el --- dotfiles/emacs.d/init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 258bc8a1..f229176e 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -15,6 +15,17 @@ (setq use-package-enable-imenu-support t use-package-always-ensure t) +(defvar imalison:do-benchmark) + +(let ((bench-file (concat (file-name-directory user-init-file) "benchmark.el"))) + (when (file-exists-p bench-file) (load bench-file))) + +(use-package benchmark-init + :if imalison:do-benchmark + :demand t + :config + (setq max-specpdl-size 99999999)) + (setq custom-file "~/.emacs.d/custom-before.el") (setq load-prefer-newer t)