From 3c372b9dd934329e7ffd939f60ae8aeb6415f673 Mon Sep 17 00:00:00 2001 From: Sako <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:31:05 +0400 Subject: [PATCH] add that --- config/emacs/emacs.org | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index ba96a35b..635bbbc3 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -144,10 +144,12 @@ Should make startup faster, taken from doom-emacs #+end_src ** Go back to normal GC after init #+begin_src emacs-lisp -(add-hook 'emacs-startup-hook - (lambda () - (setq gc-cons-threshold 16777216 ; 16mb - gc-cons-percentage 0.1))) + (add-hook 'emacs-startup-hook + (lambda () + ;;(setq gc-cons-threshold 16777216 ; 16mb + ;; this could be really bad idk + (setq gc-cons-threshold 100000000 + gc-cons-percentage 0.1))) #+end_src ** Don't use GC when minibuffer is used #+begin_src emacs-lisp @@ -163,6 +165,10 @@ Should make startup faster, taken from doom-emacs (add-hook 'minibuffer-setup-hook #'doom-defer-garbage-collection-h) (add-hook 'minibuffer-exit-hook #'doom-restore-garbage-collection-h) #+end_src +** Make Emacs read more +#+begin_src emacs-lisp +(setq read-process-output-max (* 1024 1024)) ;; 1mb +#+end_src * Native Compilation #+begin_src emacs-lisp (setq package-native-compile t) @@ -217,6 +223,14 @@ Should make startup faster, taken from doom-emacs :init (ivy-rich-mode 1)) + ;; ivy in the middle + (use-package ivy-posframe + :straight t + :init + (setq ivy-posframe-display-functions-alist '((t . ivy-posframe-display-at-window-center))) + :config + (ivy-posframe-mode 1)) + ;; counsel M+X (use-package counsel :straight t