From 7893a05e4149f7d9a05e54283a314ff1936d1bed Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sat, 24 Jul 2021 17:12:49 +0200 Subject: [PATCH] Performance updata --- files/init.el | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/files/init.el b/files/init.el index 43b2b2f..54238f0 100644 --- a/files/init.el +++ b/files/init.el @@ -17,11 +17,11 @@ ;; Lower the gc threshold again afterwards (add-hook 'emacs-startup-hook (lambda () - (setq gc-cons-threshold (* 256 1024 1024) ; 256 MB + (setq gc-cons-threshold (* 32 1024 1024) gc-cons-percentage 0.1))) ;; This is important for e.g. lsp mode -(setq read-process-output-max (* 3 1024 1024)) ;; 3mb +(setq read-process-output-max (* 3 1024 1024)) (setq make-backup-files nil auto-mode-case-fold nil @@ -29,8 +29,8 @@ inhibit-startup-screen t tramp-default-method "ssh" initial-major-mode 'fundamental-mode - initial-scratch-message nil) - + initial-scratch-message nil + fast-but-imprecise-scrolling t) ;; Disable bidirectional text scanning for a modest performance boost. I've set ;; this to `nil' in the past, but the `bidi-display-reordering's docs say that @@ -60,14 +60,6 @@ (tool-bar-mode -1) (scroll-bar-mode -1) -;; smooth scrolling -(setq redisplay-dont-pause t - fast-but-imprecise-scrolling t - scroll-margin 1 - scroll-step 1 - scroll-conservatively 10000 - scroll-preserve-screen-position 1) - ;; show matching parenthesis (show-paren-mode t) (setq show-paren-style 'paranthesis) @@ -149,7 +141,6 @@ ;; Themes and icons (use-package doom-themes :straight t - :init :config (setq doom-gruvbox-light-variant "soft") (load-theme 'doom-gruvbox-light t) @@ -159,7 +150,7 @@ ;; Cool mode line (use-package doom-modeline :straight t - :init + :config (setq doom-modeline-height 25) (doom-modeline-mode 1)) @@ -380,7 +371,7 @@ treemacs-recenter-after-file-follow t treemacs-recenter-after-tag-follow t treemacs-tag-follow-delay 1) - (treemacs-tag-follow-mode t) + (treemacs-follow-mode t) (treemacs-load-theme "doom-atom") :bind (:map global-map @@ -440,6 +431,8 @@ ;; Frontend for company (use-package company-box :straight t + :config + (setq company-box-doc-delay 2.0) :hook (company-mode . company-box-mode)) @@ -586,4 +579,6 @@ (message "Loading ~/.emacs.d/local.el") (load-file "~/.emacs.d/local.el")) + + ) ;; close performance let