From ae20493e872ff3ca599f891dfb430d16cfcd63d5 Mon Sep 17 00:00:00 2001 From: Sako <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:27:15 +0400 Subject: [PATCH] Update emacs.org --- config/emacs/emacs.org | 53 +++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index bc64b06b..e6bd21f2 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -77,32 +77,6 @@ Should make startup faster, taken from doom-emacs #+begin_src emacs-lisp (set-face-attribute `default nil :font "JetBrains Mono" :height 130) #+end_src -* SPEED SPEED SPEED SPEED -Most of these are taken from Doom-Emacs! -https://github.com/doomemacs/doomemacs/blob/develop/docs/faq.org#how-does-doom-start-up-so-quickly -Theres also Centaur Emacs -https://github.com/seagle0128/.emacs.d -** Avoid Garbage Collection at startup -#+begin_src emacs-lisp - (use-package gcmh - :init - (gcmh-mode 1)) - (add-hook 'emacs-startup-hook (gcmh-mode 1)) -#+end_src -** Move Garbage collection further back -#+begin_src emacs-lisp -(setq gc-cons-threshold most-positive-fixnum) -#+end_src -** Unset file-name-handler-alist temporarily -#+begin_src emacs-lisp -(defvar sakomacs--file-name-handler-alist file-name-handler-alist) -(setq file-name-handler-alist nil) - -;; Alternatively, restore it even later: -(add-hook 'emacs-startup-hook - (lambda () - (setq file-name-handler-alist sakomacs--file-name-handler-alist))) -#+end_src * Use-Package setup #+begin_src emacs-lisp (require `package) @@ -137,6 +111,33 @@ https://github.com/seagle0128/.emacs.d (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) #+end_src +* SPEED SPEED SPEED SPEED +Most of these are taken from Doom-Emacs! +https://github.com/doomemacs/doomemacs/blob/develop/docs/faq.org#how-does-doom-start-up-so-quickly +Theres also Centaur Emacs +https://github.com/seagle0128/.emacs.d +** Avoid Garbage Collection at startup +#+begin_src emacs-lisp + (use-package gcmh + :init + (gcmh-mode 1)) + (add-hook 'emacs-startup-hook (gcmh-mode 1)) +#+end_src +** Move Garbage collection further back +#+begin_src emacs-lisp +(setq gc-cons-threshold most-positive-fixnum) +#+end_src +** Unset file-name-handler-alist temporarily +#+begin_src emacs-lisp +(defvar sakomacs--file-name-handler-alist file-name-handler-alist) +(setq file-name-handler-alist nil) + +;; Alternatively, restore it even later: +(add-hook 'emacs-startup-hook + (lambda () + (setq file-name-handler-alist sakomacs--file-name-handler-alist))) +#+end_src + * Packages ** Command Log Mode #+begin_src emacs-lisp