From 0768ad04abdb339d45bce0397c1660d468f42db3 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Thu, 27 Feb 2025 10:19:25 -0500 Subject: [PATCH] Enhance native-comp and warnings defaults --- README.md | 2 -- early-init.el | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6758f5..9ee8155 100644 --- a/README.md +++ b/README.md @@ -727,8 +727,6 @@ And [add the elpaca bootstrap code](https://github.com/progfolio/elpaca?tab=read 2. You can also add the following to `~/.emacs.d/post-init.el`: ```emacs-lisp -;; Hide warnings and display only errors -(setq warning-minimum-level :error) ;; Display of line numbers in the buffer: ;; (display-line-numbers-mode 1) diff --git a/early-init.el b/early-init.el index a455b1a..8f536f9 100644 --- a/early-init.el +++ b/early-init.el @@ -107,6 +107,8 @@ minimalistic appearance during startup.") ;; Set-language-environment sets default-input-method, which is unwanted. (setq default-input-method nil) +(setq warning-minimum-level (if minimal-emacs-debug :warning :error)) + ;;; Performance ;; Font compacting can be very resource-intensive, especially when rendering @@ -251,6 +253,9 @@ minimalistic appearance during startup.") ;; Suppress compiler warnings and don't inundate users with their popups. (setq native-comp-async-report-warnings-errors (or minimal-emacs-debug 'silent)) +(setq native-comp-verbose (if minimal-emacs-debug 1 0) + native-comp-debug (if minimal-emacs-debug 1 0)) +(setq native-comp-jit-compilation t) (setq native-comp-warning-on-missing-source minimal-emacs-debug) (setq debug-on-error minimal-emacs-debug