From 787f98342fcaa241e1c15832d85e677c81edb142 Mon Sep 17 00:00:00 2001 From: "Alison G. Watson" Date: Fri, 2 Oct 2020 13:41:24 -0600 Subject: [PATCH] emacs: don't use file-name-handler-alist, do use a lower gc-cons-threshold for normal use --- emacs/early-init.el | 5 +++-- emacs/init.el | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs/early-init.el b/emacs/early-init.el index 4fe0013..b26e79a 100644 --- a/emacs/early-init.el +++ b/emacs/early-init.el @@ -5,7 +5,8 @@ backup-directory-alist `((".*" . ,usr-backup)) create-lockfiles nil custom-file usr-custom - gc-cons-threshold 64000000 + file-name-handler-alist nil + gc-cons-threshold (* 200 1000 1000) global-mark-ring-max 1024 inhibit-compacting-font-caches t inhibit-startup-screen t @@ -51,7 +52,7 @@ (set-fontset-font t '(#x2e80 . #x9fff) "Noto Sans CJK JP") (setq agw-mode-line-family - (if (string-equal system-type "windows-nt") + (if (eq system-type 'windows-nt) "Noto Mono" "Iosevka")) diff --git a/emacs/init.el b/emacs/init.el index 3bb99b8..f5e56d8 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -402,4 +402,7 @@ :config (fringe-mode 0)) +;; end of init +(setq gc-cons-threshold (* 1 1000 1000)) + ;; EOF