This commit is contained in:
Sako 2023-12-06 18:31:05 +04:00 committed by GitHub
parent ecdf35378a
commit 3c372b9dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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