From 058b4fa959423930a78b858433be89a96156c580 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 27 Jun 2024 02:27:08 +0100 Subject: (Emacs/*)~Shamelessly stole some optimisations from doom Cut my boot time by 0.2s?! --- Emacs/.config/emacs/early-init.el | 55 +++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 17 deletions(-) (limited to 'Emacs/.config/emacs/early-init.el') diff --git a/Emacs/.config/emacs/early-init.el b/Emacs/.config/emacs/early-init.el index af45062..dc839fe 100644 --- a/Emacs/.config/emacs/early-init.el +++ b/Emacs/.config/emacs/early-init.el @@ -18,28 +18,49 @@ ;; along with this program. If not, see . ;;; Commentary: -;; Sets up some variables and graphical configuration to make Emacs -;; less janky looking while loading. +;; Sets up some variables and graphical configuration to make Emacs less janky +;; looking while loading. Shamelessly copies some optimisations from Doom +;; Emacs. ;;; Code: -(setq gc-cons-threshold most-positive-fixnum - package-enable-at-startup nil - frame-inhibit-implied-resize nil - frame-resize-pixelwise t - native-comp-async-jobs-number 4 - native-comp-eln-load-path (list (concat user-emacs-directory ".local/native-compile")) - native-comp-always-compile nil - native-comp-async-report-warnings-errors 'silent) +(setq-default auto-mode-case-fold nil + bidi-display-reordering 'left-to-right + bidi-inhibit-bpa t + bidi-paragraph-direction 'left-to-right + cursor-in-non-selected-windows nil + fast-but-imprecise-scrolling t + frame-inhibit-implied-resize t + frame-resize-pixelwise t + gc-cons-percentage 1 + gc-cons-threshold most-positive-fixnum + highlight-nonselected-windows nil + idle-update-delay 1.0 + load-prefer-newer noninteractive + load-prefer-newer noninteractive + native-comp-always-compile nil + native-comp-async-jobs-number 4 + native-comp-async-report-warnings-errors 'silent + native-comp-eln-load-path (list (concat user-emacs-directory ".local/native-compile")) + package-enable-at-startup nil + redisplay-skip-fontification-on-input t) ;; don't use x resources lol (advice-add #'x-apply-session-resources :override #'ignore) ;; turn off the menu bar, tool bar, scroll bar, fringes ;; also set the transparency (active inactive) (setq-default - default-frame-alist '((menu-bar-lines . 0) - (tool-bar-lines . 0) - (scroll-bar-lines . 0) - (left-fringe . 0) - (right-fringe . 0) - (alpha . (90 80)))) -(scroll-bar-mode -1) + default-frame-alist '((menu-bar-lines . 0) + (tool-bar-lines . 0) + (scroll-bar-lines . 0) + (vertical-scroll-bars . 0) + (left-fringe . 0) + (right-fringe . 0) + (alpha . (90 80))) + menu-bar-mode nil + tool-bar-mode nil + scroll-bar-mode nil) +;; Disable making the tool bar +(advice-add #'tool-bar-setup :override #'ignore) +;; Even though we disable the startup screen in the config, we need to do this +;; to ensure it actually doesn't display it +(advice-add #'display-startup-screen :override #'ignore) -- cgit v1.2.3-13-gbd6f