add that
This commit is contained in:
parent
ecdf35378a
commit
3c372b9dd9
|
@ -144,10 +144,12 @@ Should make startup faster, taken from doom-emacs
|
||||||
#+end_src
|
#+end_src
|
||||||
** Go back to normal GC after init
|
** Go back to normal GC after init
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(add-hook 'emacs-startup-hook
|
(add-hook 'emacs-startup-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq gc-cons-threshold 16777216 ; 16mb
|
;;(setq gc-cons-threshold 16777216 ; 16mb
|
||||||
gc-cons-percentage 0.1)))
|
;; this could be really bad idk
|
||||||
|
(setq gc-cons-threshold 100000000
|
||||||
|
gc-cons-percentage 0.1)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Don't use GC when minibuffer is used
|
** Don't use GC when minibuffer is used
|
||||||
#+begin_src emacs-lisp
|
#+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-setup-hook #'doom-defer-garbage-collection-h)
|
||||||
(add-hook 'minibuffer-exit-hook #'doom-restore-garbage-collection-h)
|
(add-hook 'minibuffer-exit-hook #'doom-restore-garbage-collection-h)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** Make Emacs read more
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
||||||
|
#+end_src
|
||||||
* Native Compilation
|
* Native Compilation
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq package-native-compile t)
|
(setq package-native-compile t)
|
||||||
|
@ -217,6 +223,14 @@ Should make startup faster, taken from doom-emacs
|
||||||
:init
|
:init
|
||||||
(ivy-rich-mode 1))
|
(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
|
;; counsel M+X
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:straight t
|
:straight t
|
||||||
|
|
Loading…
Reference in a new issue